P1581 [CF1663B] Mike's Sequence
普及
题目描述

You won't find this sequence on OEIS.

Input

One integer $r$ ($-45 \le r \le 2999$).

Output

One integer.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
2999
样例输出
3000