First the smallest#8961

First the smallest

1 segundo
128 megabytes
Muy fácil

Given an array of integers. Find the smallest element of the array that occurs first and swap it with the first element of the array without changing the order of other elements.

Entrada

First line contains positive integer . Next line contains integers. All numbers do not exceed by absolute value.

Salida

Print the elements of updated array.

Ejemplos

Ejemplo 1

Loading
Loading