N=int(input()) ans=0 for i in range(1,N): if i*i<=N:ans+=1 else:break print(ans)