Given the hand gestures of the two rock-paper-scissors players, determine if the first player win the game. Note that rock defeats scissors, scissors defeats paper and paper defeats rock. Two players tie if they show the same symbol.
Each test case consists of two space-separated strings (which can only be “rock”, “paper” or “scissors”) in a line, representing the symbol shown by the first and the second player, respectively.
The input is terminated by end-of-file (EOF).
2For each test case, output a line that consists of the string “win”, “tie” or “lose” to indicate that the first player win, lose, or two players tie.