#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  int maxP = 0;
  int maxQ = 0;
  for (int i = 0; i < k; i++) {
    int p = 0;
    int q = 0;
    cin >> p;
    cin >> q;
    if (p < q) {
      cout << "Happy Alex" << endl;
      return 0;
    }
  }
  cout << "Poor Alex" << endl;
  return 0;
}
