#include <bits/stdc++.h>
using namespace std;
void shell(int x[], int z, int y[]) {
  int k = z / 2, j, temp, temp2, m;
  while (k >= 1) {
    for (j = k; j < z; j++) {
      temp = x[j];
      temp2 = y[j];
      for (m = j - k; m >= 0 && x[m] > temp; m -= k) {
        x[m + k] = x[m];
        y[m + k] = y[m];
      }
      x[m + k] = temp;
      y[m + k] = temp2;
    }
    k = k / 2;
  }
}
int main() {
  int i, n, temp, s = 0;
  cin >> n;
  int a[n], b[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    cin >> b[i];
  }
  shell(a, n, b);
  for (i = 0; i < n - 1; i++) {
    if (b[i + 1] < b[i]) {
      s = 1;
      break;
    }
  }
  if (!s)
    cout << "Poor Alex";
  else
    cout << "Happy Alex";
}
