const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); let lines = []; rl.on('line', function(line){ lines.p...