#include <bits/stdc++.h>
using namespace std;
long long check(long long num, long long pos) { return num & 1 << (pos - 1); }
long long set_bin(long long num, long long pos) { return num | 1 << (pos - 1); }
long long reset_bin(long long num, long long pos) {
  return num & ~(num >> (pos - 1));
}
void binary_transform(long long num) {
  for (int i = 30; i >= 0; i--) {
    if (check(num, i) > 0) {
      cout << 1;
    } else {
      cout << 0;
    }
  }
  cout << endl;
}
void make_combination(vector<long long> v) {
  long long s = v.size();
  long long howmany = pow(2, s);
  for (int i = 0; i < howmany; i++) {
    for (int j = 1; j <= s; j++) {
      if (check(i, j) > 0) {
        cout << v[j - 1] << " ";
      }
    }
    cout << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  long long cnt = 0;
  long long flag = 0;
  for (int i = 0; i < n; i++) {
    int a[n], b[n];
    cin >> a[i] >> b[i];
    if (a[i] < b[i]) {
      cnt++;
    }
    if (a[i] > b[i]) {
      cnt++;
    }
    if (cnt == 2) {
      flag = 1;
      break;
    }
  }
  if (flag) {
    cout << "Happy Alex" << endl;
  } else {
    cout << "Poor Alex" << endl;
  }
  return 0;
}
