import sys input = sys.stdin.readline N=int(input()) OK=0 NG=10**18+5 while NG>OK+1: mid=(OK+NG)//2 if mid*mid<=N: OK=mid else: NG=mid print(OK)