#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a, b;
  pair<int, int> p[100005];
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    p[i] = make_pair(a, b);
  }
  sort(p, p + n);
  for (int i = 0; i < n; i++) {
    if (p[i].first < p[i + 1].first && p[i].second > p[i + 1].second) {
      cout << "Happy Alex";
      return 0;
    }
  }
  cout << "Poor Alex";
  return 0;
}
