#include <iostream>
#include <cmath>
using namespace std;
class date
{
public:
date(){a = 0, b = 0, c = 0;}
date(int aa, int bb, int cc){a = aa; b = bb; c = cc;}
friend bool operator == (date &d1, date &d2);
friend bool operator != (date &d1, date &d2);
//~date(){cout<<"!"<<endl;}
private:
int a, b, c;
};
bool operator == (date &d1, date &d2)
{
if(d1.a==d2.a&&d1.b==d2.b&&d1.c==d2.c)
return 1;
return 0;
}
bool operator != (date &d1, date &d2)
{
if(d1.a==d2.a&&d1.b==d2.b&&d1.c==d2.c)
return 0;
return 1;
}
int main()
{
date d1(5,4,22), d2(5,4,30);
if(d1==d2)
cout<<"相等"<<endl;
else
cout<<"不等"<<endl;
return 0;
}