#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  bool tut = false;
  cin >> n;
  while (n--) {
    int a, b;
    cin >> a >> b;
    if (a < b) tut = true;
  }
  cout << (tut ? "Happy Alex" : "Poor Alex") << endl;
  return 0;
}
