export { } const lines = []; const reader = require('readline').createInterface({ input: process.stdin, output: process.stdout }) reader.on('line', (line) => { lines.push(line) }) reader.on('close', () => { const colorList: string[] = lines const redList: string[] = colorList.filter((color: string): boolean => { return (color === 'red' || color === 'RED' ) }) if (redList.length >= 2) { console.log('RED') } else { console.log('BLUE') } })