#include <stdio.h>

int main() {
    int n = 0;
    scanf("%d",&n);
    int a = 0;
    int i = 0;
    int arr[1001] = {0};
    for(i = 1;i<=1000;i++)
    {
        scanf("%d ",&a);
        arr[a] = a;
    }
    for(i =1;i<=1000;i++)
    {
        if(arr[i]!=0)
        printf("%d ",arr[i]);
    }
    return 0;
}