#include <bits/stdc++.h>
using namespace std;
int main()
{ int a,b,c,d,t;
 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(c,d);
  if(a-b==2&&b-c==2&&c-d==2){
  	cout<<d<<'+'<<2<<'='<<c<<endl;
  	cout<<c<<'+'<<2<<'='<<b<<endl;
  	cout<<b<<'+'<<2<<'='<<a<<endl;
  }else{
  	cout<<a<<" "<<b<<" "<<c<<" "<<d<<endl;
  }
	return 0;
}

/**************************************************************
	Problem: 1046
	User: ccccccccccx
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/