n = int(input()) ans = int(n ** (1/2)) - 5 ans = max(0, ans) while ans ** 2 <= n: ans += 1 print(ans-1)