#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10, mod = 1e9 + 7;
void solve() {
  int n;
  cin >> n;
  pair<int, int> a[n];
  for (int i = 0; i < n; ++i) {
    int p, q;
    cin >> p >> q;
    a[i] = {p, q};
  }
  sort(a, a + n);
  int mn = a[0].second;
  for (int i = 1; i < n; ++i) {
    if (a[i].second < mn) {
      cout << "Happy Alex\n";
      return;
    }
    mn = a[i].second;
  }
  cout << "Poor Alex\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) solve();
  return 0;
}
