Problems
Mosaic
Mosaic
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 ≤ 109
).
Output
Print the number of cards left.
Input example #1
1
Output example #1
0
Input example #2
27
Output example #2
2