import java.util.Scanner;
public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] array = new int[n];
        for(int i = 0 ; i < n ; i++) {
            array[i] = sc.nextInt();
        }
        boolean isChong = false;
        for(int i = 0 ; i < n ; i++) {
            for(int j = 0 ; j < i ; j++) {
                if(array[i] == array[j]){
                    isChong = true;
                    break;
                } else {
                    isChong = false;
                }
            }
            if(!isChong) {
                System.out.print(array[i] + " ");
            }
        }
    }
}