#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d,e,f;
while(cin>>a>>b>>c>>d>>e>>f)
if(c<b||e<d)
cout<<"QQ"<<endl;
else if(b<=c&&d<=e)
cout<<"Happy"<<endl;
}