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