#include<bits/stdc++.h>
#include<vector>
using namespace std;
int main()
{
vector<int> a;
for(int i=0; ;i++)
{
int x;
cin>>x;
a.push_back(x);
if(x==-1){
break;
}
}
vector<int> b;
for(int i=0;i<a.size();i++){
int dem=0;
for(int j=0;j<a.size();j++)
{
if(a[i]==a[j]){
dem++;
}
}
if(dem==1) b.push_back(a[i]);
else continue;
}
for(int x:b) cout<<x<<" ";
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2luY2x1ZGU8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpCnsKICAgIHZlY3RvcjxpbnQ+IGE7CiAgIGZvcihpbnQgaT0wOyA7aSsrKQogICB7CiAgICAgICBpbnQgeDsKICAgICAgIGNpbj4+eDsKICAgICAgIGEucHVzaF9iYWNrKHgpOwogICAgICAgaWYoeD09LTEpewogICAgICAgIGJyZWFrOwogICAgICAgfQogICB9CiAgIHZlY3RvcjxpbnQ+IGI7CiAgICBmb3IoaW50IGk9MDtpPGEuc2l6ZSgpO2krKyl7CiAgICAgICAgaW50IGRlbT0wOwogICAgICAgIGZvcihpbnQgaj0wO2o8YS5zaXplKCk7aisrKQogICAgICAgIHsKICAgICAgICAgICAgaWYoYVtpXT09YVtqXSl7CiAgICAgICAgICAgICAgICBkZW0rKzsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZihkZW09PTEpIGIucHVzaF9iYWNrKGFbaV0pOwogICAgICAgIGVsc2UgY29udGludWU7CiAgICB9CiAgICBmb3IoaW50IHg6YikgY291dDw8eDw8IiAiOwoKICAgIHJldHVybiAwOwp9Cg==