input = gets.split(" ").map(&:to_i) myself = input[0] opponent = input[1] arr = [0, 1, 2] case arr[(opponent - myself) % 3] when 0 then puts "Drew" when 1 then puts "Won" when 2 then puts "Lost" end