Given two infinite increasing sequences of numbers and . The -th term of sequence is i^2. The -th term of sequence is i^3.
Sequence is an increasing sequence obtained by merging sequences and . If a number appears in both sequence and sequence , it appears only once in sequence .
The only line of the input file contains a natural number (1 \leq x \leq 10^7).
Output C_x to the output file.
Example 1