#include <bits/stdc++.h>
using namespace std;
bool cmpr(vector<long long> &a, vector<long long> &b) { return a[0] < b[0]; }
void solve() {
  long long n, temp;
  cin >> n;
  vector<vector<long long>> v;
  for (long long i = 0; i < n; i++) {
    vector<long long> row;
    cin >> temp;
    row.push_back(temp);
    cin >> temp;
    row.push_back(temp);
    v.push_back(row);
  }
  sort(v.begin(), v.end(), cmpr);
  for (long long i = 1; i < n; i++) {
    if (v[i][1] < v[i - 1][1]) {
      cout << "Happy Alex";
      cout << "\n";
      ;
      return;
    }
  }
  cout << "Poor Alex";
  cout << "\n";
  ;
  return;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  solve();
}
