1547 - 求S的值

求S=1+2+4+7+11+16……的值刚好大于等于5000时S的值。

Input

Output

一行,一个整数。

Examples

Input


                

Output


                
Time Limit 1 second
Memory Limit 64 MB
Discuss Stats
上一题 下一题