#include <bits/stdc++.h>
using namespace std;
int arr[100001];
int a, b, n, best;
int main() {
  bool dima = true;
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    scanf("%d%d", &a, &b);
    arr[a] = b;
  }
  for (int i = 0; i < 100001; ++i) {
    if (arr[i] > 0)
      if (arr[i] > best)
        best = arr[i];
      else {
        dima = false;
        break;
      }
  }
  if (dima)
    printf("Poor Alex");
  else
    printf("Happy Alex");
}
