#include <bits/stdc++.h>
using namespace std;
bool compare(pair<int, int> A, pair<int, int> B) {
  if (A.first != B.first) return A.first < B.first;
  return A.second < B.second;
}
int main() {
  int N;
  cin >> N;
  vector<pair<int, int> > A(N);
  for (int i = 0; i < N; ++i) {
    cin >> A[i].first >> A[i].second;
  }
  sort(A.begin(), A.end(), compare);
  bool flag = false;
  int highestPrice = A[0].first, highestQuality = A[0].second;
  for (int i = 1; i < N; ++i) {
    if (A[i].first > highestPrice && A[i].second < highestQuality) {
      flag = true;
      break;
    } else if (A[i].first >= highestPrice && A[i].second > highestPrice) {
      highestPrice = A[i].first;
      highestQuality = A[i].second;
    }
  }
  if (flag) {
    cout << "Happy Alex\n";
  } else {
    cout << "Poor Alex\n";
  }
  return 0;
}
