#include <bits/stdc++.h>
using namespace std;
int n, a, b, j = 0;
int main() {
  cin >> n;
  while (n--) {
    cin >> a >> b;
    if (a > b || b > a) j++;
  }
  if (j >= 1)
    cout << "Happy Alex";
  else
    cout << "Poor Alex";
  return 0;
}
