import sys

import math
a=int(input())
b=math.isqrt(a)
print(b)