#include <bits/stdc++.h>
using namespace std;
struct laptop {
  int a, b;
};
bool cmp(laptop x, laptop y) { return x.a < y.a; }
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  laptop s[n];
  for (int i = 0; i < n; ++i) cin >> s[i].a >> s[i].b;
  sort(s, s + n, cmp);
  for (int i = 1; i < n; ++i) {
    if (s[i].b < s[i - 1].b) {
      cout << "Happy Alex" << endl;
      return 0;
    }
  }
  cout << "Poor Alex" << endl;
  return 0;
}
