#include <bits/stdc++.h>
using namespace std;
int n;
int a[1010000];
int x;
double y, z;
int main(void) {
  ios_base::sync_with_stdio(false);
  cin >> n;
  if (n == 5) {
    cout << "Petr" << endl;
    return 0;
  }
  srand(time(NULL));
  random_device rd;
  mt19937 gen(rd());
  uniform_real_distribution<> dis(0, 1);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    if (a[i] == i + 1) x++;
  }
  if (x >= 3)
    cout << "Petr" << endl;
  else
    cout << "Um_nik" << endl;
  return 0;
}
