#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  map<int, int> m;
  cin >> n;
  for (int j = 0; j < n; j++) {
    cin >> x >> y;
    m[x] = y;
  }
  map<int, int>::iterator i;
  for (map<int, int>::iterator it = m.begin(); it != m.end(); it++) {
    i = it;
    i++;
    if (it->second > i->second) {
      cout << "Happy Alex\n";
      return 0;
    }
  }
  cout << "Poor Alex\n";
  return 0;
}
