#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, found = 0;
  cin >> n;
  while (n--) {
    int a, b;
    cin >> a >> b;
    if (b > a) {
      found = 1;
      cout << "Happy Alex";
      break;
    }
  }
  if (found != 1) {
    cout << "Poor Alex";
  }
}
