#include <stdio.h>

int main() {
    int n = 0;
    scanf("%d",&n);
    int arr[100000] ={0};
    int i = 0;
    int ret =0;
    for(i = 0;i<n;i++)
    {
        scanf("%d\n",&ret);
        arr[ret]  = ret;
    }
    for(i = 0;i<n;i++)
    {
        if(arr[i]!=0)
        printf("%d ",arr[i]);
    }
    return 0;
}