#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> a;
  for (int i = 0; i < n; i++) {
    long long aa;
    cin >> aa;
    a.push_back(aa - 1);
  }
  long long ans = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] > -1) {
      ans ^= 1;
      long long x = i;
      while (x != -1) {
        long long y = a[x];
        a[x] = -1;
        x = y;
      }
    }
  }
  if (ans)
    cout << "Um_nik";
  else
    cout << "Petr";
  return 0;
}
