LearnPy Hub
← Arena
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
solution.py
Output appears here
Whole k-th Root · Python Arena problem · LearnPy Hub