import java.util.ArrayList;

import java.util.Comparator;

import java.util.HashSet;

import java.util.Scanner;

public class Main {

public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
    Integer n = Integer.valueOf(sc.nextLine());
    HashSet<Integer> strSet = new HashSet<Integer>();
    for (int i = 0; i < n ; i++) {
    	strSet.add(Integer.valueOf(sc.nextLine()));
	}
	sss(strSet);
}

public static void sss(HashSet<Integer> strSet) {
	
	ArrayList<Integer> strList = new ArrayList<Integer>();
	
	strList.addAll(strSet);
	strList.sort(new Comparator<Integer>() {
		@Override
		public int compare(Integer o1, Integer o2) {
			return o1 - o2;
		}
	});
	
	strList.forEach(e->{
		System.out.println(e);
	});
}

}