The union of sequences#2705

The union of sequences

1 second
64 megabytes
Easy

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 .

Input

The only line of the input file contains a natural number (1 \leq x \leq 10^7).

Output

Output C_x to the output file.

Examples

Example 1

Loading
Loading