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