def sgets = gets.strip x = sgets y = sgets if [x, y].map(&:length).inject(:-).abs > 1 puts '?' else puts x.chars.zip(y.chars).join end