#include <bits/stdc++.h>
using namespace std;
int n;
int B[1000000 + 5];
int a[1000000 + 5];
int ask(int x) {
  int ans = 0;
  for (int i = x; i; i -= (i & (-i))) ans += B[i];
  return ans;
}
void add(int x, int v) {
  for (int i = x; i <= n; i += (i & (-i))) B[i] += v;
}
int main() {
  cin >> n;
  long long cnt = 0;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    add(a[i], 1);
    cnt += i - ask(a[i]);
  }
  if ((n % 2) == (cnt % 2))
    cout << "Petr" << endl;
  else
    cout << "Um_nik" << endl;
  return 0;
}
