#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, c = 0, d = 0;
  cin >> n;
  int x, y;
  while (n--) {
    cin >> x >> y;
    if (y < x) {
      c++;
    } else {
      d++;
    }
  }
  if (c * d == 0) {
    cout << "Poor Alex" << endl;
  } else {
    cout << "Happy Alex" << endl;
  }
}
