#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> m;
  int a, b;
  while (n--) {
    cin >> a >> b;
    m.insert(pair<int, int>(a, b));
  }
  auto j = m.begin();
  j++;
  for (auto i = m.begin(); j != m.end(); i++, j++) {
    if (j->second < i->second) {
      cout << "Happy Alex" << endl;
      return 0;
    }
  }
  cout << "Poor Alex" << endl;
  return 0;
}
