"use strict"
var x = require('fs').readFileSync('/dev/stdin', 'utf8');
var arr = x.split(' ');
var a = arr[0];
var b = arr[1];
var area = a * b;
var perimeter = a * 2 + b * 2;
console.log(area + ' ' + perimeter);
