Two minimums#5059

Two minimums

1 second
128 megabytes
Very easy

Find two different minimal elements in the given sequence of numbers.

Input

First line contains the number of elements ( ≤ ≤ ) in the sequence. Then given integers, each of them is no more than 2 \cdot 10^9 by absolute value.

Output

Print in increasing order two different minimal elements from the given sequence. It is known that they always exist.

Examples

Example 1

Loading
Loading