import sys
import math
a = math.floor(math.sqrt(int(input())))
'''
math.sqrt(...)​​:计算这个整数的平方根
​​math.floor(...)​​:对平方根结果向下取整(去掉小数部分)
'''
print(a)