#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, j;
  cin >> n;
  vector<long long int> v[n];
  long long int a, b, count = 0, temp1, temp2;
  for (i = 0; i < n; i++) {
    cin >> a >> b;
    if (a != b) count++;
  }
  if (count > 0) {
    cout << "Happy Alex";
  } else {
    cout << "Poor Alex";
  }
}
