#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ll i,j,k,l,m,n;
while(1)
{
cin>>n>>m;
if(n==-1&&m==-1)
{
break;
}
else
{
if(n==0&&m==0)
{
cout<<"0+0!=0"<<endl;
continue;
}
if(n==1||m==1)
{
cout<<n<<"+"<<m<<"="<<n+m<<endl;
}
else
{
cout<<n<<"+"<<m<<"!="<<n+m<<endl;
}
}
}
}
using namespace std;
typedef long long ll;
int main()
{
ll i,j,k,l,m,n;
while(1)
{
cin>>n>>m;
if(n==-1&&m==-1)
{
break;
}
else
{
if(n==0&&m==0)
{
cout<<"0+0!=0"<<endl;
continue;
}
if(n==1||m==1)
{
cout<<n<<"+"<<m<<"="<<n+m<<endl;
}
else
{
cout<<n<<"+"<<m<<"!="<<n+m<<endl;
}
}
}
}
No comments:
Post a Comment