#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 100000 + 20;
pair<int, int> a[MAX_N];
int n;
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (int i(0); i < int(n); ++i) cin >> a[i].first >> a[i].second;
  sort(a, a + n);
  for (int i(1); i < int(n); ++i)
    if (a[i].second < a[i - 1].second) {
      cout << "Happy Alex" << endl;
      return 0;
    }
  cout << "Poor Alex" << endl;
  return 0;
}
