Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/musbat-bolsa-qoshing

Add if positive

Easy 1000 ms 64 MB 14%
Share

An integer $n$ is given. If $n$ is positive, add $1$ to it; otherwise leave the number unchanged. Find the resulting number.

On the number line, one is added to a positive number

Input

One integer $n$.

Output

One integer — the result.

Note

$-10^{9} \le n \le 10^{9}$

Examples

Input #1
5
Output #1
6
Input #2
-3
Output #2
-3

Sign in to submit a solution

Signing up is free and takes a minute.