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