#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, int> laptop;
  int all;
  cin >> all;
  int* arr = new int[all];
  for (int i = 0; i < all; i++) {
    int x;
    cin >> x;
    cin >> laptop[x];
    arr[i] = x;
  }
  sort(arr, arr + all);
  for (int i = 0; i < all - 1; i++) {
    if (laptop[arr[i]] > laptop[arr[i + 1]]) {
      cout << "Happy Alex";
      return 0;
    }
  }
  cout << "Poor Alex";
}
