#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
if(a<b)swap(a,b);
if(a<c)swap(a,c);
if(a<d)swap(a,d);
if(b<c)swap(b,c);
if(b<d)swap(b,d);
if(c<d)swap(d,c);
if(d+2==c&&c+2==b&&b+2==a) cout<<d<<"+2="<<c<<endl<<c<<"+2="<<b<<endl<<b<<"+2="<<a;
else cout<<a<<" "<<b<<" "<<c<<" "<<d<<" ";
return 0;
}
/**************************************************************
Problem: 1046
User: hongjiaming
Language: C++
Result: Accepted
Time:7 ms
Memory:2072 kb
****************************************************************/