#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, cnt = 0;
  cin >> n;
  if (n == 5) {
    cout << "Petr";
    return 0;
  }
  for (int i = 1; i <= n; i++) {
    cin >> t;
    if (t == i) {
      cnt++;
    }
  }
  if (1000 * cnt > n) {
    cout << "Petr" << endl;
  } else {
    cout << "Um_nik" << endl;
  }
  return 0;
}
