giaoxu01

View as PDF



Problem types
Points: 100 Time limit: 1.0s Memory limit: 640M Input: stdin Output: stdout

1, 1, 2, 1, 2, 3, 1, 2, 3, 4, ....

Nhập \(n(n \leq 10^{14})\).

Yêu cầu: In ra số thứ \(n\) của dãy.

Example

Test 1

Input
5 
Output
2

Comments

There are no comments at the moment.