4247: 求和到第几项

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:98 Solved:31

Description

输入一个正整数x
求s=1 +2 +3……+n,当加到第几项时,s的值会超过x?




Input

一个正整数

Output

一个整数n,表示求和到第n项。


Sample Input Copy

1000

Sample Output Copy

45