#include <bits/stdc++.h>
using namespace std;
long long n;
long long num[1000001];
long long ind[1000001];
signed main() {
  ios::sync_with_stdio(false);
  cin >> n;
  long long order = 0;
  for (long long i = 0; i < (n); i++) {
    long long x;
    cin >> x;
    ind[x] = i;
    num[i] = x;
  }
  long long cnt = 0;
  for (long long i = (1); i < (n); i++) {
    if (ind[i] == i - 1) {
      continue;
    }
    ind[num[i - 1]] = ind[i];
    swap(num[ind[i]], num[i - 1]);
    cnt++;
    ind[i] = i - 1;
  }
  if (3 * n % 2 == 0) {
    cout << (cnt % 2 == 0 ? "Petr" : "Um_nik") << "\n";
  } else {
    cout << (cnt % 2 == 1 ? "Petr" : "Um_nik") << "\n";
  }
}
