Competitions

# Week 9: January 11 - 17. Pointers. References

# Twice the minimum

The array of real numbers is given. Calculate the twice value of the minimum element in array.

#### Input

First line contains the number **n** (**n** ≤ **100**) of elements in array. Second line contains **n** real numbers - the elements of array. Each value does not exceed **100** by absolute value.

#### Output

Print the twice value of the minimum element in array with **2** decimal digits.

Input example #1

6 6 7.5 2.1 2.0 0 -3

Output example #1

-6.00