#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  long long t = n;
  vector<pair<int, int> > laptop;
  for (int i = 0; i < n; i++) {
    long long temp1, temp2;
    cin >> temp1 >> temp2;
    laptop.push_back(make_pair(temp1, temp2));
  }
  sort(laptop.begin(), laptop.end());
  int cur = laptop[0].second;
  for (int i = 1; i < n; ++i) {
    if (cur > laptop[i].second) {
      cout << "Happy Alex\n";
      return 0;
    }
    cur = laptop[i].second;
  }
  cout << "Poor Alex\n";
  return 0;
}
