x = (1+((4*int(input())-1)/3)**0.5) / 2 print(int(x) if x==int(x) else int(x)+1)