#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, n, t, i, j, k, s, p, f = 0;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a >> b;
    if (a < b || a > b) {
      f++;
      break;
    }
  }
  if (f != 0) {
    cout << "Happy Alex" << endl;
  } else {
    cout << "Poor Alex" << endl;
  }
  f = 0;
}
