var
a,b: array [1..10000] of integer;
z,i,j,n: integer;
begin
readln(n);
for i:=1 to N do
read(a[i]);
for i:=1 to n do
begin
z:=0;
for j:=1 to n do
if a[i]=a[j] then inc(z);
if z=1 then b[i]:=a[i];
end;
for i:=n downto 2 do
for j:=1 to i-1 do
if b[j+1] Swap(b[j+1],b[j]);
for i:=1 to N do
if b[i]<>0 then write(b[i],' ');
writeln;
end.