#include <bits/stdc++.h>
int ar[100005];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    int a, b;
    scanf("%d%d", &a, &b);
    ar[a] = b;
  }
  bool ok = false;
  for (int i = 1; i < n; i++) {
    ok |= (ar[i] > ar[i + 1]);
  }
  if (ok)
    puts("Happy Alex");
  else
    puts("Poor Alex");
  return 0;
}
