輸入
//輸入進入流模式(flowing-mode宇驾,默認關(guān)閉噪沙,需用resume開啟)次哈,注意開啟后將無法read到數(shù)據(jù)
process.stdin.resume();
process.stdin.setEncoding('ascii');? //or "utf8"
var input ="";
var input_array ="";
process.stdin.on('data', function (data) {
input += data;
});
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data',function(chunk) {
? ? process.stdout.write('data: '+ chunk);
});
process.stdin.on('end',function() {
? ? process.stdout.write('end');
});
var n = parseInt(readline());
var ans = 0;
for(var i = 0;i < n; i++){
lines = readline().split(" ")
for(var j = 0;j < lines.length; j++){
ans += parseInt(lines[j]);
}
print(ans);
}