const rl = require("readline").createInterface({ input: process.stdin }); let count = 0 let total = 0 const map = {} rl.on('line', (line) => { if (total === 0) { total = +line } else { if (++count <= total) { const [k, v] = line.split(' ') Reflect.has(map, k) ? map[k] = map[k] + (+v)...