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