#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const int mxN = 1000010;
int BIT[mxN];
void upd(int ind, int val) {
  while (ind < mxN) {
    BIT[ind] += val;
    ind |= ind + 1;
  }
}
int get(int ind) {
  int res = 0;
  while (ind >= 0) {
    res += BIT[ind];
    ind = (ind & (ind + 1)) - 1;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  srand(time(NULL));
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) cin >> a[i];
  long long inv = 0;
  for (int i = 0; i < N; i++) upd(a[i], 1), inv += (i + 1 - get(a[i]));
  inv &= 1;
  N &= 1;
  cout << (inv == N ? "Petr" : "Um_nik") << '\n';
  return 0;
}
