\problem{St. Ives}

\begin{wrapfigure}{r}{0.06\linewidth}
\includegraphics[width=\linewidth]{stIves/roadBorder2.png}
%\includegraphics[width=0.2\linewidth]{stIves/crossRoadSign.png}
\end{wrapfigure}
Robert the chapman (a medieval traveling merchant) made regular trips
between his home village and St. Ives to peddle his cloth, ribbons,
and needles. On one such trip he encountered a curious procession:

\begin{verse}
As I was traveling to St. Ives\\
I met a man with seven wives.\\
Every wife had seven sacks.\\
Every sack had seven cats.\\
Every cat had seven kits.\\
Kits, cats, sacks, wives -\\
How many were traveling to St. Ives?
\end{verse}

The answer to this classic ancient riddle is `one'. Robert was
traveling to St. Ives. The others were all traveling away from
St. Ives. However, if we prefer to ask the question of how many were
traveling from St. Ives, we can add up:

\begin{itemize}
\item 1 man
\item 7 wives
\item 7*7 sacks
\item 7*7*7 cats
\item 7*7*7*7 kittens
\end{itemize}
for a total of $2801$.

On his next trip to St. Ives, Robert met the same man, this time
accompanied by 3 wives, each with 3 sacks, and so on. Becoming curious
about what seemed to be a bizarre village ritual of some kind, Robert
kept track of how many traveled with the man each time he encountered
him during the subsequent year. 

Help Robert compute the number of entities he has encountered 
during his travels to St. Ives.

\subsection*{Input}

Input consists of a single line, containing one integer in the
range $0\ldots100$.  That integer indicates the number to be applied
as the multiplier in the St Ives riddle.

\subsection*{Output}

Print a line containing the integer number traveling from St. Ives
(man, wives, sacks, cats, kits).


\subsection*{Example}

\subsubsection*{Input:}

Given the input

\begin{verbatim}
3
\end{verbatim}

The output would be

\begin{verbatim}
121
\end{verbatim}
