#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, a, b, c = 0, m = 0, f;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a >> b;
    if (a > b) c++;
    if (a < b) m++;
  }
  if (c >= 1 and m >= 1)
    cout << "Happy Alex";
  else
    cout << "Poor Alex";
  cout << endl;
  return 0;
}
