inputs = gets.chomp.split.map(&:to_i) p case inputs when [0, 1], [1, 2], [2, 0] then 'Won' when [0, 0], [1, 1], [2, 2] then 'Drew' else 'Lost' end