#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int s[n][2];
for (int i = 0; i < n; i++) {
cin >> s[i][0] >> s[i][1];
}
int a = 0;
for (int i = 0; i < n; i++) {
bool happy = false;
for (int j = i + 1; j < n; j++) {
if (s[i][0] < s[j][0] && s[i][1] > s[j][1]) {
cout << "Happy Alex";
a = 1;
happy = true;
break;
}
}
if (happy) {
break;
}
}
if (a == 0) {
cout << "Poor Alex";
}
return 0;
}