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