#include <stdio.h>

int main() {
    int year=0;
    int mou=0;
    scanf("%4d %2d",&year,&mou);
    if(mou<=12)
    {
        if(mou>=3&&mou<=5)
        {
            printf("spring\n");
        }
        else if(mou>=6&&mou<=8)
        {
            printf("summer\n");
        }
        else if(mou>=9&&mou<=11)
        {
            printf("autumn\n");
        }
        else 
        {
            printf("winter\n");
        }
    }
    return 0;
}