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