a,b,c,d=map(int,input().split())
if a < b: # a>b>c>d
t = a;
a = b;
b = t;
if a < c:
t = a;
a = c;
c = t;
if b < c:
t = b;
b = c;
c = t;
if b < d:
t = b;
b = d;
d = t;
if c < d:
t = c;
c = d;
d = t;
if a-b!=2 or b-c!=2 or c-d!=2:
print(a,b,c,d)
else:
if c-d==2:
print('{}+2={}'.format(d,c))
if b-c==2:
print('{}+2={}'.format(c,b))
if a-b==2:
print('{}+2={}'.format(b,a))
/**************************************************************
Problem: 1046
User: admin
Language: Python
Result: Accepted
Time:102 ms
Memory:34480 kb
****************************************************************/