LearnPy Hub
← Recursion & Lambda problems
Medium

Closest to Zero

Read integers and print the one closest to zero. If two are equally close, print the positive one.

Input

One line of integers.

Output

One integer.

Sample 1

Input
5 -3 9 3
Output
3

Sample 2

Input
-1
Output
-1
solution.py
Output appears here
Closest to Zero · Python practice problem · LearnPy Hub