#include <bits/stdc++.h>
using namespace std;
struct A {
  int a, b;
};
bool compare(struct A a, struct A b) { return a.a < b.a; }
int main() {
  struct A arr[100005];
  int n, i;
  cin >> n;
  for (i = 0; i < n; i++) cin >> arr[i].a >> arr[i].b;
  sort(arr, arr + n, compare);
  int flag = 0;
  for (i = 1; i < n; i++) {
    if (arr[i].b < arr[i - 1].b) {
      flag = 1;
      break;
    }
  }
  if (flag == 1)
    cout << "Happy Alex" << endl;
  else
    cout << "Poor Alex" << endl;
  return 0;
}
