const rl = require('readline').createInterface({input: process.stdin}) const iter = rl[Symbol.asyncIterator]() const readline = async () => (await iter.next()).value void async function () { const lines = await readline() const month = parseInt(lines.substring(4, 6)) if (lines.length === 6) { if (month <= 5 && month >= 3) { console.log('spring') } else if (month <= 8 && month >= 6) { console.log('summer') } else if (month <= 11 && month >= 9) { console.log('autumn') } else if (month <= 2 && month >= 1 || month === 12) { console.log('winter') } } else { console.log('输入字符串非法') } rl.close() }()