#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
    char name[4];
    printf("enter the day ");
    scanf("%s",&name);
    if(strcmp(name,"SUN")==0){
        printf("7");
    }    else if(strcmp(name,"SAT")==0){
        printf("1");
    }    else if(strcmp(name,"MON")==0){
        printf("6");
    }    else if(strcmp(name,"TUE")==0){
        printf("5");
    }    else if(strcmp(name,"WED")==0){
        printf("4");
    }   else if(strcmp(name,"THU")==0){
        printf("3");
    }   else if(strcmp(name,"FRI")==0){
        printf("2");
    }
    return 0;
}
