#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
const int maxn = 1000005;
int n;
int a[maxn], co[maxn];
int lowbit(int x) { return x & -x; }
void add(int pos) {
  for (int i = pos; i <= n; i += lowbit(i)) co[i]++;
  return;
}
int sum(int pos) {
  int res = 0;
  for (int i = pos; i >= 1; i -= lowbit(i)) res += co[i];
  return res;
}
int main() {
  while (cin >> n) {
    int ans = 0;
    for (int i = 1; i <= n; i++) {
      int tp;
      cin >> tp;
      ans += (sum(n) - sum(tp));
      add(tp);
    }
    if ((ans & 1) == ((3 * n) & 1))
      puts("Petr");
    else
      puts("Um_nik");
  }
  return 0;
}
