import math

n = int(input())

zhengshu = math.sqrt(n)

result = math.floor(zhengshu)

print(result)