#include <iostream>
using namespace std;
class per
{
friend const per operator+(const per &l,const per &r);
int a;
int b;
public:
per()
{}
per(int a ,int b ):a(a),b(b)
{
}
bool operator>( per &s)
{
if(a>s.a&&b>s.b)
return true;
else
return false;
}
};
int main()
{
per p1(30,30);
per p2(20,20);
if(p1>p2)
{
cout<<"p1>p2"<<endl;
}
else
{
cout<<"p1<p2"<<endl;
}
return 0;
}