Problem:
Score : 100 points

Problem Statement

Given is a string S representing the day of the week today.

S is SUN, MON, TUE, WED, THU, FRI, or SAT, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.

After how many days is the next Sunday (tomorrow or later)?

Constraints

S is SUN, MON, TUE, WED, THU, FRI, or SAT.

Input

Input is given from Standard Input in the following format:

S

Output

Print the number of days before the next Sunday.

Sample Input 1

SAT

Sample Output 1

1

It is Saturday today, and tomorrow will be Sunday.

Sample Input 2

SUN

Sample Output 2

7

It is Sunday today, and seven days later, it will be Sunday again.

Solution in C (GCC 5.4.1) (judge verdict: Wrong Answer)

#include <stdio.h>
#include <stdlib.h>

int main()
{
    char day1,day2,day3;
    printf("please enter you day ");
    scanf(" %c",&day1);
    scanf(" %c",&day2);
    scanf(" %c",&day3);
    if( day1=='S' && day2=='A' && day3=='T' )
    {
        printf("1\n");
        printf("it is saturday today and tomorrow will be sunday");
    }
    else if (day1=='S' && day2=='U' && day3=='N' )
    {
        printf(" 7");
        printf("it is sunday today and seven days later, it will be sunday again");
    }
    else if (day1=='M' && day2=='O' && day3=='N' )
    {
        printf("the number of this day is 3");
        printf("it is monday today and tomorrow will be  tuesday");
    }
    else if (day1=='T' && day2=='U' && day3=='E' )
    {
        printf("the number of this day is 4");
        printf("it is tuesday today and tomorrow will be  wedday");
    }
    else if (day1=='W' && day2=='E' && day3=='D' )
    {
        printf("the number of this day is 5");
        printf("it is wedensday today and tomorrow will be  thurathday");
    }
    else if (day1=='T' && day2=='H' && day3=='U' )
    {
        printf("the number of this day is 6");
        printf("it is tuesday today and tomorrow will be  firday");
    }
    else if (day1=='F' && day2=='R' && day3=='I' )
    {
        printf("the number of this day is 7");
        printf("it is friday today and tomorrow will be  sunday");
    }





}