import java.util.Scanner;
import java.util.Arrays;
public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int index = 0;
        int[] arr = new int[n];
        while(sc.hasNextInt()) {
            arr[index++] = sc.nextInt();
        }
        Arrays.sort(arr);
        int num = 0;
        for(int i = 0 ; i < n ; i++) {
            if(arr[i] == num) {
                continue;
            }
            num = arr[i];
            System.out.print(arr[i] + " ");
        }
    }
}