April Fools Day Contest 2022 |
---|

Finished |

The following languages are additionally available for the problems from the contest

April Fools Day Contest 2022:

- Text

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

*special problem

divide and conquer

implementation

math

No tag edit access

The problem statement has recently been changed. View the changes.

×
B. Mike's Sequence

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputYou won't find this sequence on OEIS.

Input

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

Output

One integer.

Example

Input

2999

Output

3000

Codeforces (c) Copyright 2010-2024 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Apr/13/2024 10:10:58 (i1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|