#include <iostream>
#include <vector>
#include <set>
#include <alagorithm>

int main(){
    int n;
    std: :cin >> n;
    
    if(n < 0) {
        std: :cout <<"invalid input" <<std: :end1;
        return 0;
        
    }
    std: :set<int>uniqueElements;
    for (int i = 0;i<n:++i){
        int element;
        std: :cin >> element;
        uniqueElements.insert(element);
    }
    for(int element : uniqueElements){
        std: :cout << element<<" ";
    }
    std: :cout<<std: :end1;
    
    return 0;
}