#include <bits/stdc++.h>
using namespace std;
const long double Pi = 3.141592653;
const long long mod = 1e6 + 3;
class Graph {
  map<int, vector<int>> ma;

 public:
  void addedge(int n, int m) {
    ma[n].push_back(m);
    ma[m].push_back(n);
  }
};
int main() {
  long long n;
  cin >> n;
  vector<pair<long long, long long>> v;
  for (int i = 0; i < n; i++) {
    long long a, b;
    cin >> a >> b;
    v.push_back(make_pair(a, b));
  }
  sort(v.begin(), v.end());
  string ans = "Poor Alex";
  for (int i = 0; i < n - 1; i++) {
    if (v[i].first < v[i + 1].first and v[i].second > v[i + 1].second) {
      ans = "Happy Alex";
      break;
    }
  }
  cout << ans;
  return 0;
}
