N = int(input()) ok = 1 ng = 10**9+10 while ng - ok > 1: mid = (ok + ng) // 2 if mid * mid <= N: ok = mid else: ng = mid print(ok)