#include <bits/stdc++.h>
using namespace std;
int a[1000005], aa[1000005];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(18);
  int n, c = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] == i) c++;
  }
  if (n == 5) {
    cout << "Petr";
    return 0;
  }
  double x = (((double)c) / ((double)n));
  if (x <= (double)(0.002)) {
    cout << "Um_nik";
  } else {
    cout << "Petr";
  }
  return 0;
}
