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