#include <bits/stdc++.h>
using namespace std;
int main() {
    int x;
    cin>>x;
    if(x>0&&x<13){
        if(x<6&&x>2){
            cout<<"春季";
        }else if(x<9&&x>5){
            cout<<"夏季";
        }else if(x<12&&x>8){
            cout<<"秋季";
        }else{
            cout<<"冬季";
        }
    }else{
        cout<<"不合法";
    }
    return 0;
}

还是和上题一样,直接拿上题模版改就行。