#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  std::vector<pair<int, int> > price, qual;
  pair<int, int> one, two;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    price.push_back(make_pair(x, i));
    qual.push_back(make_pair(y, i));
  }
  sort(price.begin(), price.end());
  sort(qual.begin(), qual.end());
  bool res = 1;
  for (int i = 0; i < n; i++)
    if (price[i].second != qual[i].second) res = 0;
  if (!res)
    cout << "Happy Alex";
  else
    cout << "Poor Alex";
  return 0;
}
