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