cho.sh
Notes
Loading...

Integer Square Root

Time limit

0.4s

Memory limit

128 MB

Problem

Given an integer n, write a program that finds the smallest nonnegative integer q such that q^2 >= n.

Input

The first line contains an integer n. (0 <= n < 2^63)

Output

Print the smallest nonnegative integer q such that q^2 >= n.