import java.util.Scanner;
import java.util.TreeSet;
//去重的方法哈希和set,为了优化排序速度使用红黑树优先,故直接使用TreeSet秒杀
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
         int n = in.nextInt();
        TreeSet<Integer> set = new TreeSet<>();
         for (int i = 0; i < n; i++) {
            set.add(in.nextInt());
        }
          for (int num : set) {
            System.out.println(num);
        }
    }
}