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