MinMax
MinMax
DESCRIPTION
We’ve intercepted codes from an underground organisation with intentions of malicious activity. Intelligence has informed us that most of the numbers are garbage, but the biggest and smallest numbers in the file form co-ordinates of the group’s next attack location.
Identify these 2 numbers, then print out first the minimum and then the maximum. Please be swift, agent - the clock is ticking!
1
2
3
4
5
6
7
Example
Input
3.29 3.09 1.34 2.89
Output
1.34
3.29
SOLUTION
1
2
3
4
n = input()
ar = [float(x) for x in n.split()]
print(min(ar))
print(max(ar))