#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, b, c;
  cin >> n;
  vector<pair<int, int> > a;
  for (int i = int(0); i < int(n); i++) {
    cin >> b >> c;
    a.push_back(make_pair(b, c));
  }
  sort((a).begin(), (a).end());
  int f = 0;
  for (int i = int(1); i < int(n); i++) {
    if (a[i].second < a[i - 1].second) {
      f = 1;
      break;
    }
  }
  if (f)
    cout << "Happy Alex\n";
  else
    cout << "Poor Alex\n";
  return 0;
}
