"use strict"; const input = require("fs").readFileSync("/dev/stdin", "utf8"); let ary = input.split('\n').map(a => a.split(' ')); ary[0] = ary[0].reduce((p, c) => p + parseInt(c, 10), 0); console.log(ary.join(' '));