#include <bits/stdc++.h>
using namespace std;
struct laptop {
  int price;
  int quality;
  laptop() {}
  laptop(int a, int b) : price(a), quality(b) {}
};
bool compare(laptop l1, laptop l2) {
  if (l1.price == l2.price) return l1.quality > l2.quality;
  return l1.price < l2.price;
}
int main() {
  int n;
  scanf("%d", &n);
  laptop arr[100001];
  int p, q;
  for (int i = 0; i < n; i++) {
    scanf("%d", &p);
    scanf("%d", &q);
    arr[i] = laptop(p, q);
  }
  sort(arr, arr + n, compare);
  int i;
  for (i = 1; i < n; i++)
    if (arr[i - 1].price < arr[i].price && arr[i - 1].quality > arr[i].quality)
      break;
  if (i < n)
    printf("Happy Alex\n");
  else
    printf("Poor Alex\n");
  return 0;
}
