import math import sys def input(): return sys.stdin.readline().strip() def main(): print(math.isqrt(int(input()))) if __name__ == "__main__": main()