#include <iostream>
using namespace std;
enum Season {
SPRING,
SUMMER,
AUTUMN,
WINTER,
INVALID
};
// 根据月份返回对应的季节
Season getSeason(int month) {
if (month < 1 || month > 12) {
return INVALID; // 不合法
} else if (month >= 3 && month <= 5) {
return SPRING; // 春季
} else if (month >= 6 && month <= 8) {
return SUMMER; // 夏季
} else if (month >= 9 && month <= 11) {
return AUTUMN; // 秋季
} else {
return WINTER; // 冬季(12月、1月和2月)
}
}
// 将季节枚举值转换为字符串
string seasonToString(Season season) {
switch (season) {
case SPRING: return "春季";
case SUMMER: return "夏季";
case AUTUMN: return "秋季";
case WINTER: return "冬季";
case INVALID: return "不合法";
default: return "未知季节";
}
}
int main() {
int month;
cin >> month;
// write your code here......
Season season = getSeason(month);
// 输出结果
cout << seasonToString(season) << endl;
return 0;
}