#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, f = 0, x, y;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d%d", &x, &y);
    if (x != y) f = 1;
  }
  if (f)
    cout << "Happy Alex";
  else
    cout << "Poor Alex";
  return 0;
}
