#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, int> mp;
  int n;
  cin >> n;
  int price[n];
  int quality[n];
  for (int i = 0; i < n; i++) {
    cin >> price[i] >> quality[i];
    mp[price[i]] = quality[i];
  }
  sort(price, price + n);
  for (int i = 0; i < n - 1; i++) {
    if (mp[price[i]] > mp[price[i + 1]]) {
      cout << "Happy Alex";
      return 0;
    }
  }
  cout << "Poor Alex";
  return 0;
}
