Hey How can I take two kinds of data input from a single line in Ruby. Generally I use
X, Y = gets.split.map(&:to_i)
For taking two integ