Mosaic#1954

Mosaic

1 second
128 megabytes
Very easy

Petya has square cards. He wants to assemble a large square (without holes) using these cards. How many cards will he have left over?

Input

One positive integer (1 \leq n \leq 10^9).

Output

Print the number of cards that Petya will have left over.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading