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