#include <bits/stdc++.h>
using namespace std;
const int mn = (1e6 + 5) * 2;
int n;
int t[mn];
void add(int i, int x) {
  while (i <= n) t[i] += x, i += i & -i;
}
int sum(int i) {
  int s = 0;
  while (i) s += t[i], i -= i & -i;
  return s;
}
int a[mn];
int main() {
  ios::sync_with_stdio(0);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  long long ans = 0;
  for (int i = n; i; i--) {
    ans += sum(a[i]);
    add(a[i], 1);
  }
  if (ans % 2 == n % 2)
    cout << "Petr";
  else
    cout << "Um_nik";
  return 0;
}
