#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y, cnt = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    if (x > y || y > x) cnt++;
  }
  if (cnt > 0)
    cout << "Happy Alex";
  else
    cout << "Poor Alex";
  return 0;
}
