#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, c = 0;
  cin >> n;
  int a[n], b[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i] >> b[i];
  }
  for (int i = 0; i < n; i++) {
    if (a[i] < b[i]) {
      c = 1;
      break;
    }
  }
  if (c) {
    cout << "Happy Alex" << endl;
  } else
    cout << "Poor Alex" << endl;
}
