All problems

Problem 766

Absolute Value

Easy · 10 pts · Math, Basics

Problem

Print the absolute value of an integer N: its distance from zero on the number line, without a sign. The absolute value of a positive number or zero is the number itself, and the absolute value of a negative number is the same number with the minus sign removed. Use a 64-bit type if your language's 32-bit integers would overflow for the input range.

Input

A single integer N.

Output

Print |N|.

Constraints

-10^9 <= N <= 10^9

Example input

-42

Example output

42

Explanation

-42 is 42 steps away from zero, so its absolute value is 42. The absolute value of 15 is 15.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Leap Year Check Next: Minutes to Hours and Minutes