Back to tasks
Rock, paper, scissors
BeginnerPython for kids 路 Lesson 30: Contest tasks with conditions
Problem Statement
Read the first and the second player's move: kamien (rock), papier (paper) or nozyce (scissors). Rock beats scissors, scissors beat paper, and paper beats rock. Print 1 if the first player wins, 2 if the second one does, and REMIS if both moves are the same.
Input Format
Two words, each on its own line: kamien, papier or nozyce.
Output Format
1, 2 or REMIS.
Examples
Example 1
Input
kamien nozyce
Output
1
Example 2
Input
kamien papier
Output
2
Example 3
Input
papier papier
Output
REMIS