#include <bits/stdc++.h>
using namespace std;
int main() {
  bool b = false;
  int n, Max, z, min, w;
  cin >> n;
  vector<pair<int, int>> V;
  pair<int, int> P;
  vector<int> x;
  for (int i = 0; i < n; i++) {
    cin >> P.first >> P.second;
    V.push_back(P);
    x.push_back(P.second - P.first);
  }
  Max = min = x[0];
  z = w = 0;
  for (int i = 0; i < n; i++) {
    if (x[i] > Max) {
      Max = x[i];
      z = i;
    }
    if (x[i] < min) {
      min = x[i];
      w = i;
    }
  }
  if (V[z].first < V[w].first && V[z].second >= V[w].second) b = true;
  if (b == true)
    cout << "Happy Alex";
  else
    cout << "Poor Alex";
}
