Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Absolute Value

By TarifEzaz · Limits 1s, 512 MB

You will be given an integer x. The absolute value of x will be within 100. You have to add 1 to x's absolute value and print the result.

Input

The input contains a single integer x. The absolute value of x will be within 100.

For 50 points, the given numbers will be non-negative.

Output

Output the result for the given x.

Sample

InputOutput
70
71

According to Wikipedia, “In mathematics, the absolute value or modulus |x| of a real number x is the non-negative value of x without regard to its sign. Namely, |x| = x for a positive x, |x| = -x for a negative x (in which case -x is positive).”

Discussion

Toph uses cookies. By continuing you agree to our Cookie Policy.