print(int((4*int(input())+1.5)**0.5)-1)