https://codeforces.com/problemset/problem/456/A
#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
vector<pair<int,int>>ve;
int n;
int main(void)
{
cin>>n;
for(int i=0;i<n;i++)
{
int a,b; cin>>a>>b;
ve.push_back({a,b});
}
sort(ve.begin(),ve.end());
bool flag=0;
for(int i=0;i<ve.size()-1;i++)
{
if(ve[i].first<=ve[i+1].first&&ve[i].second>=ve[i+1].second) flag=1;
}
if(flag) puts("Happy Alex");
else puts("Poor Alex");
return 0;
}