#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  int n, p, q;
  cin >> n;
  vector<pair<int, int>> v1;
  int x1, x2;
  for (size_t i = 0; i < n; i++) {
    cin >> x1 >> x2;
    v1.push_back(make_pair(x1, x2));
  }
  bool s = true;
  sort(v1.begin(), v1.end());
  for (size_t i = 0; i < n; i++) {
    if (v1[i].second > v1[i + 1].second && i + 1 < n) {
      s = false;
      break;
    }
  }
  if (s == true) {
    cout << "Poor Alex";
  } else {
    cout << "Happy Alex";
  }
  return 0;
}
