#include <iostream>
using namespace std;
class Per{
//friend const Per operator+(const Per A,const Per B);
int a;
int b;
public:
Per (){}
Per(int a,int b):a(a),b(b){}
bool operator>(const Per &R)
{
if(a>R.a&&b>R.b)
return true;
else
return false;
}
bool operator<(const Per &R)
{
if(a<R.a&&b<R.b)
return true;
else
return false;
}
bool operator>=(const Per &R)
{
if(a>=R.a&&b>R.b)
return true;
else
return false;
}
bool operator<=(const Per &R)
{
if(a<=R.a&&b<=R.b)
return true;
else
return false;
}
bool operator==(const Per &R)
{
if(a==R.a&&b==R.b)
return true;
else
return false;
}
bool operator!=(const Per &R)
{
if(a!=R.a&&b!=R.b)
return true;
else
return false;
}
};
int main()
{
Per A(2,4);
Per B(3,4);
if(A > B)
{
cout << "A>B" << endl;
}
if(A >= B)
{
cout << "A>=B" << endl;
}
if(A < B)
{
cout << "A<B" << endl;
}
if(A <= B)
{
cout << "A<=B" << endl;
}
if(A == B)
{
cout << "A==B" << endl;
}
if(A != B)
{
cout << "A!=B" << endl;
}
return 0;
}