#include <bits/stdc++.h>   using namespace std;   const int MAX = 1e6 + 2;   int pos[MAX], a[MAX];   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     int n, c = 0, k;     cin >> n;     for (int i = 1; i < n + 1; i++) cin >> k, a[k] = i, pos[i] = k;     for (int i = 1; i < n + 1; i++) {       if (pos[i] != i) {         c++;         int j = pos[i];         int k = a[i];         pos[k] = j;         a[j] = k;         a[i] = i;         pos[i] = i;       }     }     if ((3 * n + c) & 1)       cout <<  Um_nik ;     else       cout <<  Petr ;   }   