#include <bits/stdc++.h>
using namespace std;
long long MOD = 1000000007;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long N;
  cin >> N;
  vector<long long> A(N);
  vector<long long> B(N);
  long long res = 0;
  for (long long i = 0; i < N; i++) {
    cin >> A[i];
    A[i]--;
    B[A[i]] = i;
  }
  long long c = 0;
  for (long long i = 0; i < N; i++) {
    if (A[i] != i) {
      long long p = B[i];
      swap(A[i], A[p]);
      swap(B[A[i]], B[A[p]]);
      c ^= 1;
    }
  }
  if (((3 * N) % 2) == c) {
    cout << "Petr" << endl;
  } else {
    cout << "Um_nik" << endl;
  }
}
