eolymp
bolt
Try our new interface for solving problems
Problems

Maximum of absolute values

Maximum of absolute values

The sequence of real numbers is given. Lets find their absolute values. Find the maximum value among these absolute values. \InputFile First line contains the number $n~(n \le 100)$ of elements in the sequence. Next line gives $n$ real numbers --- the elements of the sequence, which values do not exceed $100$ by absolute value. \OutputFile Print the maximum value among the absolute values of given numbers with $2$ digits after the decimal point.
Time limit 1 second
Memory limit 128 MiB
Input example #1
5
6 7.5 2.1 2.0 0

Output example #1
7.50
Input example #2
4
-76.45 7.5 -5.1 75.23

Output example #2
76.45
Source SFE-2010 Variant 14