#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  while (n--) {
    int x, y;
    cin >> x >> y;
    mp[x] = y;
  }
  int a = 0;
  bool valid = true;
  for (auto i : mp) {
    if (i.second < a) {
      valid = false;
      break;
    }
    a = i.second;
  }
  if (valid) {
    cout << "Poor Alex" << endl;
  } else {
    cout << "Happy Alex" << endl;
  }
}
