import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scanner1 = new Scanner(System.in);
int str1 = Integer.valueOf(scanner1.nextLine());
int[] inarr = new int[str1];
int s = 0;
while(scanner1.hasNextLine() && s<str1){
inarr[s] = scanner1.nextInt();
s++;
}
int[] rs = RandomNumSort(str1,inarr);
for(int i=0;i<rs.length;i++){
System.out.println(rs[i]);
}
}
public static int[] RandomNumSort(int len,int[] array){
if(len < 1 || len > 1000 ) return null;
Set<Integer> setArray = new HashSet<>();
for(int i = 0;i<array.length; i++){
setArray.add(array[i]);
}
int[] resArray = new int[setArray.size()];
Iterator<Integer> iterator = setArray.iterator();
int s = 0;
while(iterator.hasNext() && s<setArray.size()){
resArray[s] = iterator.next();
s++;
}
//对数组进行排序
for(int i = 0; i<resArray.length; i++){
for(int j = resArray.length - 1; j>i; j--){
if(resArray[i] > resArray[j]){
int tmp = resArray[i];
resArray[i] = resArray[j];
resArray[j] = tmp;
}
}
}
return resArray;
}
}