n = int(input()) ans = 1 while ans * ans <= n: ans += 1 print(ans - 1)