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