#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<pair<int, int> > vect;
  int i;
  for (i = 0; i < n; i++) {
    int p, q;
    cin >> p >> q;
    vect.push_back(make_pair(p, q));
  }
  sort(vect.begin(), vect.end());
  for (i = 1; i < n; i++) {
    if (vect[i - 1].second > vect[i].second) {
      cout << "Happy Alex";
      return 0;
    }
  }
  cout << "Poor Alex";
  return 0;
}
