#include <bits/stdc++.h>
int main() {
  int n, a, b;
  scanf("%d", &n);
  while (n--) {
    scanf("%d %d", &a, &b);
    if (a != b) {
      printf("Happy Alex");
      return 0;
    }
  }
  printf("Poor Alex");
}
