import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()){ Set<Integer> set = new HashSet<>(); List<Integer> list = new ArrayList<>(); int n = scanner.nextInt(); while (n > 0 ){ set.add(scanner.nextInt()); n--; } for(int key : set){ list.add(key); } Collections.sort(list); for(Integer l : list){ System.out.println(l); } } } }