#include <bits/stdc++.h>
using namespace std;
long long cfix(const vector<long long>& v) {
  long long ans = 0;
  for (long long i = 0; i < v.size(); i++) {
    ans += v[i] == i + 1;
  }
  return ans;
}
long long cmer(vector<long long>& v, long long l1, long long r1, long long l2,
               long long r2) {
  vector<long long> vv;
  long long ans = 0, i = l1, j = l2;
  while (i <= r1 || j <= r2) {
    if (i > r1) {
      vv.push_back(v[j++]);
    } else if (j > r2) {
      vv.push_back(v[i++]);
    } else if (v[i] < v[j]) {
      vv.push_back(v[i++]);
    } else {
      vv.push_back(v[j++]);
      ans += r1 - i + 1;
    }
  }
  for (long long i = 0; i < r2 - l1 + 1; i++) {
    v[l1 + i] = vv[i];
  }
  return ans;
}
long long cinv(vector<long long>& v, long long l, long long r) {
  if (r - l <= 0) return 0;
  long long m = l + r >> 1;
  long long x = cinv(v, l, m);
  long long y = cinv(v, m + 1, r);
  return x + y + cmer(v, l, m, m + 1, r);
}
signed main() {
  ios_base::sync_with_stdio(false);
  srand(time(NULL));
  long long n;
  cin >> n;
  vector<long long> p(n);
  for (long long i = 0; i < n; i++) {
    cin >> p[i];
  }
  long long f = cfix(p);
  if (f <= 2 && n >= 1000) {
    cout << "Um_nik"
         << "\n";
  } else {
    cout << "Petr"
         << "\n";
  }
  return 0;
}
