#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d = 0, i, j;
  cin >> a;
  vector<pair<int, int>> v;
  for (i = 0; i < a; i++) {
    cin >> b >> c;
    v.push_back(make_pair(b, c));
  }
  sort(v.begin(), v.end());
  for (i = 0; i < a; i++) {
    if (v[i].second > v[i + 1].second && v[i].first < v[i + 1].first) {
      d = 1;
      break;
    }
  }
  if (d == 1)
    cout << "Happy Alex" << endl;
  else
    cout << "Poor Alex" << endl;
  return 0;
}
