#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 7;
const int inf = INT_MAX;
const long long inff = 1e18;
const int mod = 1e9 + 7;
struct BIT {
  int a[maxn], n;
  void init(int _) {
    n = _;
    memset(a, 0, sizeof(a));
  }
  void modify(int ii, int d) {
    for (; ii <= n; ii += ii & (-ii)) a[ii] += d;
  }
  int query(int ii) {
    int ret = 0;
    for (; ii > 0; ii -= ii & (-ii)) ret += a[ii];
    return ret;
  }
} bit;
int aa[maxn];
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  bit.init(n);
  long long rev = 0;
  for (int i = 1; i <= n; i++) {
    cin >> aa[i];
    rev += i - 1 - bit.query(aa[i]);
    bit.modify(aa[i], 1);
  }
  if (n & 1) {
    if (rev & 1)
      cout << "Petr" << endl;
    else
      cout << "Um_nik" << endl;
  } else {
    if (rev & 1)
      cout << "Um_nik" << endl;
    else
      cout << "Petr" << endl;
  }
}
