#P6182. A Math Problem

    ID: 5050 远端评测题 1000ms 32MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>2017ACM/ICPC广西邀请赛-重现赛(感谢广西大学)

A Math Problem

Problem Description

You are given a positive integer n, please count how many positive integers k satisfy $k^k \leq n$.

Input

There are no more than 50 test cases.

Each case only contains a positivse integer n in a line.

$1 \leq n \leq 10^{18}$

Output

For each test case, output an integer indicates the number of positive integers k satisfy $k^k \leq n$ in a line.

1 4
1 2