n_k = gets.split.map(&:to_i) case n_k when [0,1] || [1,2] || [2,0] puts "Won" when [1,0] || [2,1] || [0,2] puts "Lost" when [0,0] || [1,1] || [2,2] puts "Drew" end