IntermediateRating 1300
Whole k-th Root
Print the largest integer x with xᵏ ≤ n.
Input
Two integers n (1 ≤ n ≤ 10¹⁸) and k (2 ≤ k ≤ 60).
Output
One integer.
Sample 1
Input
27 3
Output
3
Sample 2
Input
26 3
Output
2
Output appears hereTwo integers n (1 ≤ n ≤ 10¹⁸) and k (2 ≤ k ≤ 60).
One integer.
27 3
3
26 3
2
Output appears here