#include <bits/stdc++.h>
using namespace std;
const double eps = 1E-9;
const double Exp = 2.718281828459045;
const double Pi = 3.1415926535897932;
const int Max_Bit = 63;
const int INF = 2000000000;
const long long LINF = 1000000000000000007ll;
const int MOD = 1000000007;
const int NMAX = 100005;
const int MMAX = 3005;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int main() {
  int n, k = 0;
  pair<int, int> a[NMAX];
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    scanf("%d%d", &a[i].first, &a[i].second);
  }
  sort(a, a + n);
  for (int i = 0; i < n; ++i) {
    if (a[i].second > k) {
      k = a[i].second;
    } else {
      printf("Happy Alex\n");
      exit(0);
    }
  }
  printf("Poor Alex\n");
  return 0;
}
