#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cur = 0;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    cur += (x == i);
  }
  if (cur >= 3 || n == 5)
    cout << "Petr" << endl;
  else
    cout << "Um_nik" << endl;
}
