'use strict';
(function(stdin) { 
  var inputs = stdin.toString();
  var params = inputs.split('\n')[0].split(' ').map(Number);
  (function(a,b) {
    //???????????????
    function f1 (a,b){
        return a*b;
    }
    function f2 (a,b){
        return (a+b)*2;
    }
    console.log(f1(a,b), f2(a,b));
    
    
  }(params[0],params[1])); 
}(require('fs').readFileSync('/dev/stdin', 'utf8')));