const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); const array = [] rl.on('line', function (line) { array.push(line) }); rl.on('close', ()=>{ array.forEach((item: string) => { while(item.length>...