#include <bits/stdc++.h>
using namespace std;
const int NIL = -1;
const int MAX_N = 1e6 + 10;
int a[MAX_N];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  pair<int, int> p[n];
  for (int i = 0; i < n; i++) cin >> p[i].first >> p[i].second;
  sort(p, p + n);
  bool c = false;
  for (int i = 1; i < n; i++) {
    if (p[i].first > p[i - 1].first && p[i].second < p[i - 1].second) c = true;
    if (p[i].first < p[i - 1].first && p[i].second > p[i - 1].second) c = true;
  }
  if (c)
    cout << "Happy Alex\n";
  else
    cout << "Poor Alex\n";
}
