const readline = require("readline") let rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); let count = null let lines = [] let rules = '' rl.on('line',(line)=>{ if(!count){ count = line }else{ if(lines.length<count){ lines...