#include <iostream>
#include <fstream>
using namespace std;
ifstream f("nr.in");
ofstream g("nr.out");
short n, num, i, fr[100];
int main()
{
f >> n;
for (i=1; i<=n; ++i)
{
f >> num;
++fr[num];
}
for (num=0; num<100; ++num)
if (fr[num]>1) g << num << " ";
}