package compare;
import java.util.*;
public class Compare {
public static void main(String[] args) {
//anArray=new int[10];
int i;
Scanner In=new Scanner(System.in);
int n=In.nextInt();
int anArray[]=new int [n];
for(i=0;i
{
anArray[i]=In.nextInt();
}
int j,temp;
for(i=0;i
{
for(j=i+1;j
{
if(anArray[i]>anArray[j])
{
temp=anArray[i];
anArray[i]=anArray[j];
anArray[j]=temp;
}
}
}
System.out.println(anArray[0]);
for(i=0;i
{
System.out.print(anArray[i]);
}
}
}