class StandardIO attr_reader :a, :b, :s def initialize(a: 0, b: 0, s: "") @a, @b, @s = a, b, s end def datainput begin @a, @b = gets.chomp.split.map { |v| Integer(v) } @s = gets.chomp rescue end end def dataoutput puts [@a+@b, @s].join(" ") end def run datainput dataoutput end end if $0 == __FILE__ StandardIO.new.run end