#include <bits/stdc++.h>
using namespace std;
const long long M = 1e9 + 7;
const long long nax = 1e3 + 1;
void solve() {
  int n;
  scanf("%d", &n);
  bool check = false;
  while (n--) {
    int a, b;
    scanf("%d%d", &a, &b);
    if (a != b) check = true;
  }
  if (check)
    printf("Happy Alex\n");
  else
    printf("Poor Alex\n");
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1, t1 = 1;
  while (t--) {
    solve();
  }
  return 0;
}
