#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<pair<int, int> > p(n);
  for (int i = 0; i < n; i++) {
    int a, b;
    cin >> a >> b;
    p[i] = {a, b};
  }
  sort(p.begin(), p.end());
  int cnt = 0;
  for (int i = 1; i < n; i++) {
    if (p[i].first > p[i - 1].first && p[i].second < p[i - 1].second) cnt += 2;
  }
  cout << (cnt >= 2 ? "Happy Alex" : "Poor Alex");
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int t = 1;
  while (t--) solve();
  return 0;
}
