#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const int maxn = 1e6 + 5;
int a[maxn];
int pos[maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int i, j, m, n, k, s;
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
    pos[a[i]] = i;
  }
  int cnt = 0;
  for (int i = 1; i <= n; ++i) {
    if (a[i] == i) continue;
    int tp = a[i], tpp = pos[i];
    swap(a[pos[i]], a[i]);
    pos[i] = i;
    pos[tp] = tpp;
    cnt++;
  }
  if ((n * 3 - cnt) % 2 == 0)
    cout << "Petr" << endl;
  else
    cout << "Um_nik" << endl;
  return 0;
}
