#include <iostream>
#include <fstream>
#include <cstdlib>
#include <ctime>
using namespace std;

char my_turn, their_turn;

int main() {
    their_turn = 'K';
    do {
        switch (their_turn) {
            case 'K':
                    my_turn = 'R';
                    break;
            case 'P':
                    my_turn = 'K';
                    break;
            case 'R':
                    my_turn = 'P';
                    break;
        }
        cout << my_turn << endl;
        cin >> their_turn;
    }
    while (their_turn != 'L');

    return 0;
}

