void sortedDel(int n)
{
	int count = 0;
	int arr[100] = { 0 };
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &arr[i]);
	}

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