#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  int a[n], b[n];
  for (int i = 0; i < n; i++) cin >> a[i] >> b[i];
  for (int k = n / 2; k > 0; k /= 2) {
    for (int i = k; i < n; i++) {
      int j;
      int temp_a = a[i];
      int temp_b = b[i];
      for (j = i; j >= k; j -= k) {
        if (temp_a > a[j - k]) {
          a[j] = a[j - k];
          b[j] = b[j - k];
        } else
          break;
      }
      a[j] = temp_a;
      b[j] = temp_b;
    }
  }
  bool result = false;
  for (int i = 0; i < n - 1; i++) {
    if (a[i] > a[i + 1] && b[i] < b[i + 1]) {
      result = true;
      break;
    }
  }
  if (result)
    cout << "Happy Alex";
  else
    cout << "Poor Alex";
  return 0;
}
