#include <bits/stdc++.h>
using namespace std;
bool f(long long x, long long y) { return x > y; }
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  vector<pair<long long, long long>> v(n);
  long long i = 0;
  long long n1 = n;
  long long n2 = n;
  while (n--) {
    cin >> v[i].first >> v[i].second;
    i++;
  }
  int chk = 1;
  sort(v.begin(), v.end());
  for (long long i = 0; i < n2 - 1; i++) {
    if (v[i].second > v[i + 1].second) {
      chk = 0;
      cout << "Happy Alex" << endl;
      return 0;
    }
  }
  if (chk) {
    cout << "Poor Alex" << endl;
    return 0;
  }
}
