Do you know rock-paper-scissors?
Scissors beats paper, paper beats rock, and rock beats scissors.
However, there is a sad legend about rock-paper-scissors that is not widely known.
Originally, there was another move called kiwi.
But when kiwi meets scissors, it gets cut. When it meets paper, it gets wrapped and sold. When it meets rock, it gets crushed.
In other words, kiwi cannot beat anyone.
For this reason, kiwi disappeared into history.
After hearing this story, munjeokman and sihyuk decided to play rock-paper-scissors with kiwi included.
Given the moves chosen by the two players, determine who wins.
The input is given in the following format.
is the move chosen by munjeokman, and is the move chosen by sihyuk.
Each move is one of the following.
S: scissorsR: rockP: paperK: kiwiIf munjeokman wins, print M.
If sihyuk wins, print S.
S, R, P, and K.Scissors beats paper, so munjeokman wins.
Kiwi cannot beat rock, so sihyuk wins.