class Keisan
 def men(height , width)
  height * width
 end

 def shu(height , width)
  (height + width)*2
 end
end

inputArray = gets.split(nil)
height = inputArray[0].to_i
width = inputArray[1].to_i

a = Keisan.new
area = a.men(height , width)
hoge = a.shu(height , width)

puts area.to_i +" "+hoge.to_i
