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