       #include <stdio.h>
       #include <stdlib.h>
       #include <string.h>
int main ()
{
char ss [100];
scanf("%s",&ss);
if (!strcmp(ss,"SAT"))
{
puts("1\n\nIt is Saturday today, and tomorrow will be Sunday.");

}
else if (!strcmp(ss,"SUN"))
{
    printf("7\n\nIt is Sunday today, and seven days later, it will be Sunday again.");

}
else if (!strcmp(ss,"MON"))
{
        printf("6\n\nIt is Monday today, and six days later, it will be Sunday.");

}
else if (!strcmp(ss,"TUE"))
{
        printf("5\n\nIt is Tuesday today, and five days later, it will be Sunday.");

}
else if (!strcmp(ss,"WED"))
{
        printf("4\n\nIt is Wednesday today, and four days later, it will be Sunday.");

}
else if (!strcmp(ss,"THU"))
{
        printf("3\n\nIt is Thursday today, and three days later, it will be Sunday.");

}
else if (!strcmp(ss,"FRI"))
{
        printf("2\n\nIt is Friday today, and two days later, it will be Sunday.");

}
else if (!strcmp(ss,"SAT"))
{
        printf("1\n\nIt is Saturday today, and one day later, it will be Sunday.");

}
return 0;
}