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