import java.util.Scanner;
import java.util.HashSet;
import java.util.ArrayList;
import java.util.List;
import java.util.Collections;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(); //n表示生成的数字个数
        HashSet<Integer> set = new HashSet<>();
        while(sc.hasNextInt()){
            set.add(sc.nextInt());  //利用HashSet无重复元素的特性去重
        }
        List<Integer> list = new ArrayList<Integer>(set); //将HashSet转换为List
        Collections.sort(list);  //利用Collections的sort()方法排序
        for(int i : list){
            System.out.println(i);
        }
        sc.close();
    }
}