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