Sequence#7377

Sequence

1 second
64 megabytes
Easy

To evaluate candidates for positions at a renowned computer company, the following classic task was presented:

Determine the -th term in the sequence of two-digit numbers: 24, 81, 63, 26, 41, \ldots

Input

A natural number , N \leq 2^{10}.

Output

The -th term of the sequence.

Examples

Example 1

Loading
Loading