#include<bits/stdc++.h>
using namespace std;
int main(){
int x,g,s,b,q,h,c;
cin>>x;
g=x%10;
s=x/10%10;
b=x/100%10;
q=x/1000;
h=g*1000+s*100+b*10+q;
if(h>x){
c=h-x;
cout<<h<<"-"<<x<<"="<<c<<endl;
}
else {
c=x-h;
cout<<x<<"-"<<h<<"="<<c<<endl;
}
return 0;
}
/**************************************************************
Problem: 1709
User: xiaojingxuan
Language: C++
Result: Accepted
Time:7 ms
Memory:2072 kb
****************************************************************/