#include <bits/stdc++.h>
using namespace std;
struct laptop {
  int price;
  int quality;
};
bool cmp(laptop &lhs, laptop &rhs) {
  if (lhs.price == rhs.price) return lhs.quality < rhs.quality;
  return lhs.price < rhs.price;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, a, b;
  cin >> n;
  vector<laptop> v;
  for (int i = 0; i < n; ++i) {
    laptop l;
    cin >> l.price >> l.quality;
    v.push_back(l);
  }
  sort(v.begin(), v.end(), cmp);
  bool valid = 0;
  for (int i = 0; i < n - 1; ++i) {
    if (v[i].price < v[i + 1].price && v[i].quality > v[i + 1].quality) {
      valid = 1;
      break;
    }
  }
  if (valid)
    cout << "Happy Alex\n";
  else
    cout << "Poor Alex\n";
  return 0;
}
