#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, x, y;
  cin >> n;
  pair<long long, long long> p[100007];
  for (i = 0; i < n; i++) {
    cin >> x >> y;
    p[i] = make_pair(x, y);
  }
  sort(p, p + n);
  int flag = 0;
  for (i = 1; i < n; i++) {
    if (p[i].second < p[i - 1].second) {
      flag = 1;
      break;
    }
  }
  if (flag == 0)
    cout << "Poor Alex" << endl;
  else
    cout << "Happy Alex" << endl;
  return 0;
}
