publicclass Main{
publicstaticvoidmain(String[] args) {
Scanner scanner = new Scanner(System.in);
while (scanner.hasNext()) {
int[] nums = newint[1001];
int sum = scanner.nextInt();
for (int i = 0; i < sum; i++) {
int n = scanner.nextInt();
nums[n] = 1;
}
for (int i = 0; i < nums.length; i++) {
if (nums[i] != 0) {
System.out.println(i);
}
}
}
}
}