First Smallest#218

First Smallest

1 second
128 megabytes
Very easy (≈850)

An array consisting of n integers is given. In this array, find the first smallest element and swap its place with the first element. Keep the other elements unchanged.

Input

The first line contains the integer n. The next line contains n integers, each with an absolute value not greater than 100.

Output

Output the modified array.

Examples

Example 1

Loading
Loading