var readline = require('readline'); rl = readline.createInterface({ input: process.stdin, output: process.stdout }); var inputs = []; var num = 0; rl.on('line', function(data) { if(num == 0){ num = Number(data.trim()); } else { inputs.push(data.trim()); if (...