#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<pair<int, int> > v;
  for (int i = 0; i < n; i++) {
    int x;
    int y;
    cin >> x >> y;
    v.push_back(make_pair(x, y));
  }
  sort(v.begin(), v.end());
  int m = v[0].second, f = 0;
  for (int i = 0; i < n; i++) {
    if (v[i].second < m) {
      f = 1;
      break;
    }
    m = max(m, v[i].second);
  }
  if (f == 0) cout << "Poor Alex" << endl;
  if (f == 1) cout << "Happy Alex" << endl;
  return 0;
}
