import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNextInt()) {
int a = in.nextInt();
int b[] = new int[a];
//TreeSet去重加排序
Set<Integer> ts = new TreeSet<>();
for(int i = 0; i<b.length; i++){
b[i] = in.nextInt();
ts.add(b[i]);
}
//打印TreeSet中的元素
for(Integer i : ts){
System.out.println(i);
}
}
}
}