import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] array = new int[n];
int[] arrayPai = new int[n];
int count = 0; // 记录重复的个数
int index = 0;
boolean isChong = false;
for(int i = 0 ; i < n ; i++) {
array[i] = sc.nextInt();
}
for(int i = 0 ; i < n ; i++) {
for(int j = 0 ; j < i ; j++) {
if(array[i] == array[j]){
isChong = true;
count++;
break;
} else {
isChong = false;
}
}
if(!isChong) {
arrayPai[index++] = array[i];
}
}
int[] re = new int[n - count];
for(int i = 0 ; i < n - count ; i++) {
re[i] = arrayPai[i];
}
Arrays.sort(re);
for(int i = 0 ; i < n - count ; i++) {
System.out.print(re[i] + " ");
}
}
}