#include<iostream> using namespace std; int main() { int a,b; int pos=0; int pro=1; int pro1=1; while(cin>>a>>b&&a!=-1&&b!=-1) { pos=0; pro=1; pro1=1; if(a==0||b==0) pos=1; else { int c=a>=b?a:b; int d=a<b?a:b; for(int i=c+2-d;i<=c+1;i++) pro*=i; for(int j=1;j<d;j++) pro1*=j; pos=pro/pro1; } if(pos==a+b) cout<<a<<"+"<<b<<"="<<a+b<<endl; else cout<<a<<"+"<<b<<"!="<<a+b<<endl; } return 0; }