#include <bits/stdc++.h>
using namespace std;
int A[100003], B[100003];
void GIAI() {
  int n;
  cin >> n;
  int f = 0;
  for (int i = (0); i < (n); i++) {
    cin >> A[i] >> B[i];
    if (A[i] != B[i]) f = 1;
  }
  if (f)
    cout << "Happy Alex";
  else
    cout << "Poor Alex";
}
int main() {
  ios_base::sync_with_stdio(false);
  GIAI();
  return 0;
}
