#P163. 【例27.3】 第几项

【例27.3】 第几项

Description

For positive integers n and m, calculate s = 1 + 2 + 3 + ... + n. At which term will the value of s exceed m?

Input Format

Input m. (1 ≤ m ≤ 40000)

Output Format

Output n.

Sample

1000
45