#include
using namespace std;
int main()
{
int a,b,c,black;
cin>>a>>b>>c;
if((a==black and b==black and c!=black) or (a==black and c==black and b!=black)
or (b==black and a==black and c!=black) or (b==black and c==black and a!=black)
or (c==black and a==black and b!=black) or (c==black and b==black and a!=black))
{cout<<a<<endl<<b<<endl<<c;}
else
{cout<<"error";}
}
using namespace std;
int main()
{
int a,b,c,black;
cin>>a>>b>>c;
if((a==black and b==black and c!=black) or (a==black and c==black and b!=black)
or (b==black and a==black and c!=black) or (b==black and c==black and a!=black)
or (c==black and a==black and b!=black) or (c==black and b==black and a!=black))
{cout<<a<<endl<<b<<endl<<c;}
else
{cout<<"error";}
}