#include <bits/stdc++.h>
using namespace std;
struct Laptop {
  int price, quality;
};
bool comp(Laptop a, Laptop b) { return a.price < b.price; }
bool arraySorted(Laptop *a, int n) {
  if (n == 1 || n == 0) return true;
  if (a[n - 1].quality < a[n - 2].quality) return false;
  return arraySorted(a, n - 1);
}
int main() {
  int n{};
  cin >> n;
  Laptop laptop[n];
  for (int i = 0; i < n; i++) cin >> laptop[i].price >> laptop[i].quality;
  sort(laptop, laptop + n, comp);
  if (!arraySorted(laptop, n))
    cout << "Happy Alex";
  else
    cout << "Poor Alex";
}
