process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
    var line = chunk.toString().split(' ');
    var x = parseInt(line[0]);
    var y = parseInt(line[1]);
    var s = x * y;
    var l = x * 2 + y * 2;
    console.log(x + ' ' + y);
});