gets a = gets.split b = gets.split c = a - b puts c.index("#{c[0]}") puts c[0] puts c[1]