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