import java.util.Scanner; import java.util.*; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //一共多少数字 int n = scanner.nextInt(); Set<Integer> set = new TreeSet<Integer>(); for (int i = 0; i < n; i++) { set.add(scanner.nextInt()); } //换行依次打印 set.stream().forEach(System.out::println); } }