#include<iostream>
#include<string>
#include<vector>
#include<cstdio>
#include<sstream>
#include<algorithm>
#include<cmath>
#include<map>
#include<functional>
#include<queue>
#include<stack>
#include<set>
using namespace std;
int main(){
int a,b,c,d;
while(cin>>a>>b>>c>>d,a+b+c+d){
	printf("%d+%d+%d+%d\n",a,b,c,d);
}
	return 0;
}