#include <bits/stdc++.h>
using namespace std;
const int oo = 0x7f7f7f7f;
const int maxn = 1e6 + 7;
const int mod = 1e9 + 7;
long long n, c[maxn], ans;
long long lowbit(long long i) { return i & (-i); }
void insert(long long i, long long x) {
  while (i <= n) {
    c[i] += x;
    i += lowbit(i);
  }
  return;
}
long long getsum(long long i) {
  long long sum = 0;
  while (i > 0) {
    sum += c[i];
    i -= lowbit(i);
  }
  return sum;
}
int main(void) {
  ios::sync_with_stdio(false);
  long long ans = 0;
  cin >> n;
  for (long long i = 1LL; i <= n; i++) {
    long long a;
    cin >> a;
    insert(a, 1);
    ans += i - getsum(a);
  }
  if (n % 2 == ans % 2)
    cout << "Petr" << endl;
  else
    cout << "Um_nik" << endl;
  return 0;
}
