#include <bits/stdc++.h>
using namespace std;
int main() {
  bool tr = false;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    if (x != y) tr = true;
  }
  if (tr)
    cout << "Happy Alex\n";
  else
    cout << "Poor Alex\n";
  return 0;
}
