시간 제한메모리 제한제출정답맞힌 사람정답 비율
15 초 (추가 시간 없음) 1024 MB266000.000%

문제

The rock-paper-scissors game is played as follows: Two players simultaneously pick their moves as ‘rock’, ‘paper’, or ‘scissors’. When both pick the same move, they each get zero points. When they pick different moves, the rock beats the scissors, the scissors beat the paper, and the paper beats the rock. The player who picked the winning move gets $+1$ and the loser $-1$ points. A match consists of a number of moves whose points are added. Thus, the sum of points of the two players at the end of a match will always be zero.

There are many rock-paper-scissors competitions where the main goal is to guess the opponent’s strategy and play against it.

The jury has implemented 10 simple programs that play rock-paper-scissors. Write a program to play against them and score as many points as possible.

출력

Your program is started a new for each opponent. Your program should write its move, followed by a newline, to the standard output and then read the opponent’s move from the standard input. Each move is designated by a capital letter: K (rock), P (paper), or R (scissors). The match is managed by a judge program that gets the moves of the jury’s program in the same way and keeps track of the score. The end of the match is signaled by L as the opponent’s move and after that your program should terminate immediately.

점수

If subtask score is negative, your score for subtask is zero.

서브태스크

예제 입력 1


K

P

R

(99997 moves)

L

예제 출력 1

K

P

R

(99997 moves)

L

채점 및 기타 정보

  • 예제는 채점하지 않는다.
  • 재채점을 하지 않는다.
  • 제출한 후 다른 소스를 제출하려면 60×(⌊(오늘 제출)/50⌋+1)초가 지나야 한다.
  • 이 문제의 채점 우선 순위는 3이다.