2025-06-11 18:35:00 +09:00

2 lines
80 B
Python

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