#include <stdio.h>

int main() {
    int num = 0;
    while (scanf("%d", &num) != EOF) {
        int arr[10000] = {0};

        for (int i = 0; i < num; i++) {
            scanf("%d", arr + i);
        }
        

        for (int i = 0; i < num; i++)
        {
            for (int j = num - 1; j >= 0; j--)
            {
                if (arr[i] == arr[j] && i != j)
                {
                    for (int k = j; k <num-1; k++)
                    {
                        arr[k] = arr[k+1];
                    }

                    num--;
                }
            }

            printf("%d ",arr[i]);

        }

    }
    return 0;
}