#NTHPRIME. Nth Prime

    暂无评定 ID: 3241 远端评测题 2667ms 1536MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>binary-searchfast-prime-counting

Nth Prime

There is no tedious description for this problem. You are just required to calculate and output the Nth prime number.

Input

The input consists of a single line containing an integer N, N ≤ 10^9.

Output

For each input file, output the Nth prime number.

Example

Input:
4

Output: 7

</p>

Note

The source limit is enabled to 4000B in order to restrict and discourage sending solutions with pre-computed tables.