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