import java.util.Scanner;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
// 注意 hasNext 和 hasNextLine 的区别
int length = in.nextInt();
int[] ints = new int[length];
ints[0] = in.nextInt(); //默认插入第一个元素
int index = 1; //记录去重后的最大下标
while (in.hasNextInt()) { // 注意 while 处理多个 case
int b = in.nextInt();
boolean is = true;
for (int i = 0; i < index; i++) {
if (ints[i] == b) { //去重
is = false;
break;
}
if ( ints[i] > b ) { //冒泡排序
int temp = ints[i];
ints[i] = b;
b = temp;
}
}
if (is) {
ints[index] = b;
index++;
}
}
for (int i = 0; i < index; i++) {
System.out.println(ints[i]); //打印结果
}
}
}