#include <bits/stdc++.h>
using namespace std;
vector<int> v;
map<long long, long long> cntb, cnta, cntc;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int a, b;
  string s = "Poor Alex";
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    if (a > b) s = "Happy Alex";
  }
  cout << s;
  return 0;
}
