var readline = require("readline");
var rl = readline.createInterface({
    input : process.stdin,
    output: process.stdout
});

var i = 0;

rl.on("line", function(text) {
    var reg = /([\d]+) ([\d]+)/;
    var data = reg.exec(text);

    i++;
    if(data !== null && data.length === 3) {
        var a = parseInt(data[1]);
        var b = parseInt(data[2]);
        console.log(a + b);
    }

    if(i == 5) while(1);
});