#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const long long MAX = 1e5 + 6;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long casos;
  cin >> casos;
  vector<long long> v;
  long long a[casos + 5];
  long long b[casos + 5];
  long long j = 0;
  long long cont = 0;
  long long n = casos;
  while (n--) {
    long long num;
    cin >> num;
    v.push_back(num - 1);
    a[num - 1] = j;
    j++;
  }
  for (int i = 0; i < v.size(); i++) {
    long long flag = 1;
    while (flag == 1) {
      if (v[i] == i) {
        flag = 0;
        break;
      }
      swap(v[i], v[v[i]]);
      cont++;
    }
  }
  if (casos % 2 == 1) {
    if (cont % 2 == 1) {
      cout << "Petr" << endl;
    } else
      cout << "Um_nik" << endl;
  } else {
    if (cont % 2 == 0) {
      cout << "Petr" << endl;
    } else
      cout << "Um_nik" << endl;
  }
}
