#include<stdio.h>
int main()
{
    int a = 0, n = 0;
    int arr[50] = { 0 };
    scanf("%d", &a);
    for (int i = 0; i < a; i++)
    {
        scanf("%d", &arr[i]);
    }
    for (int i = 0; i < a; i++)
    {
        for (int x = i+1; x < a; x++)
        {
            if (arr[i] == arr[x])
            {
                int m = x;
                for (; m < a; m++)
                {
                    arr[m] = arr[m+1];
                }x--;
                a--;
            }
        }
    }
    for (int i = 0; i < a; i++)
    {
        printf("%d ", arr[i]);
    }
    return 0;
}