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