#include <bits/stdc++.h>
using namespace std;
bool operator<(pair<int, int> a, pair<int, int> b) {
  if (a.first < b.first)
    return true;
  else
    return false;
}
int main() {
  int size;
  cin >> size;
  pair<int, int> a[size];
  int c, d;
  for (int i = 0; i < size; i++) {
    cin >> c >> d;
    a[i].first = c;
    a[i].second = d;
  }
  sort(a, a + size);
  for (int i = 1; i < size; i++) {
    if (a[i].first != a[i - 1].first) {
      if (a[i].second < a[i - 1].second) {
        cout << "Happy Alex";
        return 0;
      }
    }
  }
  cout << "Poor Alex";
}
