#include <bits/stdc++.h>
using namespace std;
const int INF = 1e8;
int binpow(int a, int b) {
  if (b == 0) return a;
  if (b % 2)
    return a * binpow(a, b - 1);
  else {
    int x = binpow(a, b / 2);
    return x * x;
  }
}
long long n;
vector<long long> t;
int sum(int r) {
  long long result = 0;
  for (; r >= 0; r = (r & (r + 1)) - 1) result += t[r];
  return result;
}
void inc(long long i, long long delta) {
  for (; i < n; i = (i | (i + 1))) t[i] += delta;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  vector<long long> a(n);
  t.resize(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    --a[i];
  }
  long long ans = 0;
  for (int i = n - 1; i >= 0; --i) {
    ans += sum(a[i]);
    inc(a[i], 1);
  }
  if (ans % 2 == (3 * n) % 2) {
    cout << "Petr";
  } else {
    cout << "Um_nik";
  }
  return 0;
}
