#include <bits/stdc++.h>
using namespace std;
int inf = 1e9;
int n;
int tab[1000005];
int getNumber(int i, int j) {
  if (j < i) return 0;
  if (j == i) return 0;
  int s = (i + j) / 2;
  long long res = (getNumber(i, s) + getNumber(s + 1, j)) % 2;
  int wsk = s;
  for (int x = i; x <= s; ++x) {
    while ((wsk + 1 <= j) and tab[wsk + 1] < tab[x]) wsk++;
    res += wsk - s;
  }
  vector<int> temp(j - i + 1);
  merge(tab + i, tab + s + 1, tab + s + 1, tab + j + 1, temp.begin());
  for (int x = i; x <= j; ++x) tab[x] = temp[x - i];
  return res % 2;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> tab[i];
  }
  int num = getNumber(0, n - 1) % 2;
  if (n & 1) {
    if ((num & 1) == 0) {
      cout << "Um_nik\n";
    } else {
      cout << "Petr\n";
    }
  } else {
    if ((num & 1) == 0) {
      cout << "Petr\n";
    } else {
      cout << "Um_nik\n";
    }
  }
}
