const readline = require('readline')const rl = readline.createInterface({ input:process.stdin, output:process.stdout})const lines = []rl.on('line',(line)=>{ lines.push(line)})rl.on('c...