#include <stdio.h> int main(){ int y,m; scanf("%4d%2d",&y,&m); if(m>=3&&m<=5)printf("spring"); else if(m>=6&&m<=8)printf("summer"); else if(m>=9&&m<=11)printf("autumn"); else if(m==12||m==1||m==2)printf("winter"); return 0; }
#include <stdio.h> int main(){ int y,m; scanf("%4d%2d",&y,&m); if(m>=3&&m<=5)printf("spring"); else if(m>=6&&m<=8)printf("summer"); else if(m>=9&&m<=11)printf("autumn"); else if(m==12||m==1||m==2)printf("winter"); return 0; }