Assignment

Write a program that keeps asking for numbers until a 0 is given, and then presents the smallest and biggest of the given numbers.



Examples

Example 1

Input

74
65
68
60
51
49
45
34
36
48
47
0

Output

The smallest of the numbers is 34, while the largest is 74.
Example 2

Input

21
26
30
20
0

Output

The smallest of the numbers is 20, while the largest is 30.