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