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