Module: Conditional operator


Problem

17 /17


The absolute value of the number

Problem

Given an integer that is not equal to zero, output its absolute value (assuming that there is no corresponding built-in function). Do not use a complete conditional statement.

The absolute value of a number is an integer or a decimal number without a sign.

Input format
The input consists of a single integer, not exceeding 1000 in absolute value, and not equal to zero.

Output format
Output the absolute value of the given number.

 
Example
N Input Output
1 -1 1
2 1 1