#include <bits/stdc++.h>
using namespace std;
int a[1000006];
int main() {
  int n;
  while (~scanf("%d", &n)) {
    int cnt = 0;
    for (int i = 1; i <= n; i++) {
      scanf("%d", &a[i]);
    }
    for (int i = 1; i <= n; i++) {
      if (a[i] == i) continue;
      while (a[i] != i) {
        cnt++;
        swap(a[i], a[a[i]]);
      }
    }
    if ((cnt % 2) == (n % 2))
      puts("Petr");
    else
      puts("Um_nik");
  }
  return 0;
}
