#include <bits/stdc++.h>
using namespace std;
bool compare(pair<int, int> a, pair<int, int> b) { return a.second < b.second; }
int main() {
  int maxz, tempbuff, tempbuff2;
  cin >> maxz;
  vector<pair<int, int>> z;
  for (int i = 0; i < maxz; i++) {
    cin >> tempbuff >> tempbuff2;
    z.push_back(make_pair(tempbuff, tempbuff2));
  }
  sort(z.begin(), z.end(), compare);
  for (int i = 0; i < maxz - 1; i++) {
    if (z[i].first > z[i + 1].first) {
      cout << "Happy Alex";
      return 0;
    }
  }
  cout << "Poor Alex";
  return 0;
}
