D = 36.times.map { gets.split.map(&:to_i) } [*1..6].product([*1..6]).shuffle.each do |x, y| puts [x, y].join(' ') end