#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5, M = 1e9 + 5, MOD = 1e9 + 7;
int n, tc;
int x, y;
vector<pair<int, int> > vec;
int main() {
  bool found1 = false;
  bool found2 = false;
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> x >> y;
    vec.push_back({x, y});
  }
  sort(vec.begin(), vec.end());
  for (int i = (0); i < (n - 1); i++) {
    if (vec[i].first < vec[i + 1].first && vec[i].second > vec[i + 1].second) {
      found2 = true;
    }
    if (found2) break;
  }
  cout << (found2 ? "Happy Alex" : "Poor Alex") << '\n';
  return 0;
}
