import java.util.Scanner;
import java.util.*;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
// 注意 hasNext 和 hasNextLine 的区别
TreeSet<Integer> set = new TreeSet();
int l = in.nextInt();
for (int i = 1; i <= l; i++) {
set.add(in.nextInt());
}
//Integer[] a = new Integer[100];
int n = 0;
for (Integer i : set) {
//a[n] = i;
System.out.println(i);
}
// for (int num1 = 0; num1 < a.length; num1++) {
// for (int num = 0; num < a.length-1; num++) {
// if (a[num] < a[num + 1]) {
// } else {
// a[num + 1] = a[num] + a[num + 1];
// a[num] = a[num + 1] - a[num];
// a[num + 1] = a[num + 1] - a[num];
// }
// }
// }
// for(int x =0 ; x< a.length; x++){
// System.out.println((int)a[x]);
// }
}
}