#include <bits/stdc++.h>
using namespace std;
bool cmp(pair<long long int, long long int> a,
         pair<long long int, long long int> b) {
  if (a.first == b.first) return a.second > b.second;
  return a.first > b.first;
}
void solve() {
  long long int n;
  cin >> n;
  pair<long long int, long long int> a[n];
  bool ok = false;
  for (long long int i = 0; i < n; i++) cin >> a[i].second >> a[i].first;
  sort(a, a + n, cmp);
  for (long long int i = 0; i + 1 < n; i++) {
    if (a[i].first > a[i + 1].first and a[i].second < a[i + 1].second)
      ok = true;
  }
  if (ok)
    cout << "Happy Alex\n";
  else
    cout << "Poor Alex\n";
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
