N = int(input()) a = 1 while a * a <= N: a += 1 print(a-1)