Mosaic
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Petya has n square cards. He wants to create from them a large square (without holes). How many cards he has left?
Input
One integer n (1 ≤ n ≤ 10^9
).
Output
Print the number of cards left.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 3K
Acceptance rate 56%