Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/while/number-whose-square-is-at-least-n

Number whose square is at least n

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 64 MB 26%
Share

A positive integer is given. Find the smallest positive integer satisfying the inequality:

Finding the smallest number whose square is at least the given one

Input

One integer .

Output

One integer — .

Note

Examples

Input #1
26
Output #1
6
Input #2
16
Output #2
4

Sign in to submit a solution

Signing up is free and takes a minute.