#include <stdio.h>

int main() {
    int n = 0;
    int i = 0;
    int arr1[1000];
    scanf("%d",&n);
    for(i = 0;i<n;i++)
    {
        scanf("%d ",&arr1[i]);
    }
    int count = 0;
    for(i = 0;i<n;i++)
    {
        int j = 0;
        for(j = i+1;j<n;j++)
        {
            if(arr1[i]==arr1[j])
            {
                int k = 0;
                for(k =j;k<n-1;k++ )
                {
                    arr1[k] = arr1[k+1];
                }
                n--;
                j--;
            }
            
        }
    }
    for(i = 0;i<n ;i++)
    {
        printf("%d ",arr1[i]);
    }
    return 0;
}