""" 約数が奇数個 """ N = int(input()) L = 0 R = N+1 while R-L != 1: m = (L+R)//2 if m**2 <= N: L = m else: R = m print (L)