LearnPy Hub
← Arena
EasyRating 1000

Integer Square Root

Print ⌊√n⌋ for n up to 10¹⁸ using binary search (no math.isqrt).

Input

One integer.

Output

A number.

Sample 1

Input
17
Output
4

Sample 2

Input
0
Output
0
solution.py
Output appears here
Integer Square Root · Python Arena problem · LearnPy Hub