#include <bits/stdc++.h>
using namespace std;
const int N = 1001000;
int n, a[N], b[N];
int c;
int main() {
  scanf("%d", &n);
  for (int i = (1); i <= (n); ++i) scanf("%d", &a[i]), b[a[i]] = i;
  for (int i = (1); i <= (n); ++i) {
    if (b[i] != i) {
      ++c;
      b[a[i]] = b[i];
      swap(a[b[i]], a[i]);
      b[i] = i;
    }
  }
  if ((c + n) & 1)
    printf("Um_nik\n");
  else
    printf("Petr\n");
  return 0;
}
