#B2112. Rock Paper Scissors Game Outcome
Rock Paper Scissors Game Outcome
Rock Paper Scissors Game Outcome
This problem involves determining the winner of a single round of the Rock Paper Scissors game, a game that originated in China and spread around the world. The rules are simple:
\(\text{rock beats scissors, paper beats rock, and scissors beat paper}\)
Given the moves of two players, your task is to determine the outcome for the first player.
inputFormat
The input consists of a single line containing two strings separated by whitespace. The first string represents the first player's move and the second string represents the second player's move. Each move is one of the following: "rock", "paper", or "scissors".
For example: rock scissors
outputFormat
Output a single word indicating the outcome for the first player: output "Win" if the first player's move beats the second player's move, "Lose" if it loses, and "Draw" if both moves are the same.
sample
rock scissors
Win