import java.util.Scanner;
import java.util.*;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
// 接收个数N
int count = in.nextInt();
if(count >= 1 && count <= 1000){
// 接收N个随机数,set自动去重
Set<Integer> numbers = new HashSet<Integer>();
for(int i = 0;i < count;i++){
int number = in.nextInt();
numbers.add(number);
}
//升序——自然排序——排序输出
numbers.stream().sorted().forEach(System.out::println);
}
}
}



京公网安备 11010502036488号