def getSquareFootage(height, width)
  return height * width
end

def getSquareLength(height, width)
  return (height + width) * 2
end

nums = $stdin.gets.split
puts "#{getSquareFootage(nums[0].to_i, nums[1].to_i)} #{getSquareLength(nums[0].to_i, nums[1].to_i)}"