process.stdin.resume()
process.stdin.setEncoding('utf8')
process.stdin.on('data', function (chunk) {
????const input = chunk.split(' ').map(Number)
????const area = input[0] * input[1]
????const outer = input[0] * 2 +  input[1] * 2
????console.log('%s %s', area, outer)
})