abs = []

lines = $stdin.read.split(?\n).map(&:to_i)

#while line = $stdin.gets.chomp
lines.each_with_index{|line, i|
  break if line == ""
  a = line.split(" ")
  #b = $stdin.gets.chomp.split(" ")
  b = lines[i+1].split(" ")
  ab = {:a => a, :b => b}
  abs.push(ab)
}
#end