#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<pair<int, int>> ab;
  for (int i = 0; i < n; i++) {
    pair<int, int> a;
    cin >> a.first >> a.second;
    ab.push_back(a);
  }
  sort(ab.begin(), ab.end());
  int mx = 0;
  for (int i = 0; i < n - 1; i++) {
    if (ab[i].second > ab[i + 1].second) {
      cout << "Happy Alex";
      return 0;
    }
  }
  cout << "Poor Alex";
}
