Problem H
Rock, Paper, Scissors
In a game of Rock, Paper, Scissors, the following rules apply:
-
Scissors cut paper.
-
Rock smashes scissors.
-
Paper wraps rock.
Input
Input consists of two lines. The first line consists of the first player’s choice. The second line consists of the second player’s choice. Each player can only choose rock, paper, or scissors.
Output
Determines which of the players wins or whether the game ends in a draw. If the first player wins, output Player 1. If the second player wins, output Player 2. In case of a draw, output Draw.
Sample Input 1 | Sample Output 1 |
---|---|
rock paper |
Player 2 |
Sample Input 2 | Sample Output 2 |
---|---|
rock scissors |
Player 1 |
Sample Input 3 | Sample Output 3 |
---|---|
rock rock |
Draw |
Sample Input 4 | Sample Output 4 |
---|---|
paper scissors |
Player 2 |
Sample Input 5 | Sample Output 5 |
---|---|
scissors paper |
Player 1 |