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 (Python):
import sys
input = sys.stdin.readline
holidays = ['','SAT', 'FRI','THU','WED','TUE','MON','SUN']
def print_ans(S):
    """Test Case
    >>> print_ans("SAT")
    1
    >>> print_ans("SUN")
    7
    """
    for i, day in enumerate(holidays):
        if S == day:
            print(i)

if __name__ == '__main__':
    S = input().rstrip()
    print_ans(S)

Solution (Python):
a=["SUN","SAT","FRI","THU","WED","TUE","MON"]
s=input()
print(7 if s=="SUN" else a.index(s))

Solution (Python):
s = input()
days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
index = days.index(s)
print(7-index)

Solution (Python):
weekday = input()

dic_weekday = {
    'SUN':0,
    'MON':1,
    'TUE':2,
    'WED':3,
    'THU':4,
    'FRI':5,
    'SAT':6
}

ans = 7 - dic_weekday[weekday]

print(ans)

Solution (Python):
L = {'SUN':0, 'SAT':6, 'FRI':5, 'THU':4, 'WED':3, 'TUE':2, 'MON':1}
print(7- L[input()])

Solution (Python):
d = {}
d["SUN"] = 0
d["MON"] = 1
d["TUE"] = 2
d["WED"] = 3
d["THU"] = 4
d["FRI"] = 5
d["SAT"] = 6
s = input()
x = d[s]
print(7-x)

Solution (Python):
S = input()

youbi = {
        'SUN': 0,
        'MON': 1,
        'TUE': 2,
        'WED': 3,
        'THU': 4,
        'FRI': 5,
        'SAT': 6}

print(7 - youbi[S])

Solution (Python):
week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

s = input()

d = week.index(s)

print(7 - d)

Solution (Python):
S = input()

youbi = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

after = [7, 6, 5, 4, 3, 2, 1]

for i, w in enumerate(youbi):
    if S == w:
        print(after[i])

Solution (Python):
N = input()

S = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

for i in range(len(S)):
    if N == S[i]:
        print(7 - i)

Solution (Python):
a = ['SAT', 'SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI']
b = [1, 7, 6, 5, 4, 3, 2]
s = input()

for i in range(len(a)):
    if s==a[i]:
        print(b[i])

Solution (Python):
S = input()
date = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
N = 0

i = 0
while i < len(date):
    if date[i] == S:
        N = 7-i
    i += 1

print(N)

Solution (Python):
import sys
if sys.platform =='ios':
	sys.stdin=open('Untitled.txt')
input = sys.stdin.readline

week = ["SUN\n","MON\n","TUE\n","WED\n","THU\n","FRI\n","SAT\n"]
S = input()

print(abs(week.index(S)-7))

Solution (Python):
a=input()
if a=="MON":
  print("6")
elif a=="SUN":
  print("7")
elif a=="TUE":
  print("5")
elif a=="WED":
  print("4")
elif a=="THU":
  print("3")
elif a=="FRI":
  print("2")
elif a=="SAT":
  print("1")

Solution (Python):
a=input()

s=['x','SAT','FRI','THU','WED','TUE','MON','SUN']

print(s.index(a))

Solution (Python):
S={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}

print(S[input()])

Solution (Python):
list = ['SUN','MON','TUE','WED','THU','FRI','SAT']
n = input()
for i in range(len(list)):
    if n == list[i]:
        print(7 -i)

Solution (Python):
S = input()

day = {"SUN":7, "MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}

print(day[S])

Solution (Python):
d={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
t=input()
print(d[t])

Solution (Python):
s = str(input())

if s == "SUN":
    print(7)
elif s == "MON":
    print(6)
elif s == "TUE":
    print(5)
elif s == "WED":
    print(4)
elif s == "THU":
    print(3)
elif s == "FRI":
    print(2)
elif s == "SAT":
    print(1)

Solution (Python):
S = input()

if S == 'SUN':
    print(7)
elif S == 'MON':
    print(6)
elif S == 'TUE':
    print(5)
elif S == 'WED':
    print(4)
elif S == 'THU':
    print(3)
elif S == 'FRI':
    print(2)
elif S == 'SAT':
    print(1)

Solution (Python):
s = input()
if s == 'SUN':
  print(7)
elif s == 'SAT':
  print(1)
elif s == 'MON':
  print(6)
elif s == 'TUE':
  print(5)
elif s==  'WED':
  print(4)
elif s == 'THU':
  print(3)
else:
  print(2)

Solution (Python):
day = {'SUN':0, 'MON':1, 'TUE':2, 'WED':3, 'THU':4, 'FRI':5, 'SAT':6}
S = input()

ans = 7 - day[S]
print(ans)

Solution (Python):
S = str(input())

x = 0

if S == "MON":
    x += 6
elif S == "TUE":
    x += 5
elif S == "WED":
    x += 4
elif S == "THU":
    x += 3
elif S == "FRI":
    x += 2
elif S == "SAT":
    x += 1
elif S == "SUN":
    x += 7

print(x)

Solution (Python):
import sys
input = sys.stdin.readline

s = input()

date = [ 'SUN','MON','TUE','WED','THU','FRI','SAT' ]

ans = date.index(s.replace("\n", ''))
print(7-ans)

Solution (Python):

daydic = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
S = input()
print(daydic[S])

Solution (Python):
s = input()
w = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT" ]

ans = 0
if s == w[0]:
    ans += 7
if s == w[1]:
    ans += 6
if s == w[2]:
    ans += 5
if s == w[3]:
    ans += 4
if s == w[4]:
    ans += 3
if s == w[5]:
    ans += 2
if s == w[6]:
    ans += 1


print(ans)

Solution (Python):
s = input()
li = ['SUN','MON','TUE','WED','THU','FRI','SAT']

for i in range(7):
    if s == li[i]:
        print(7 - i)

Solution (Python):
S=input()

days={'SUN': 7,'MON': 6,'TUE': 5,'WED': 4,'THU': 3,'FRI': 2,'SAT': 1}

print(days[S])

Solution (Python):


from sys import stdin, stderr

dow = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']

def main():
   d = stdin.readline().strip()
   res =  6- dow.index(d)
   if res == 0:
      res = 7
   print(res)

   return 0

if __name__ == '__main__': main()

Solution (Python):
s=input()

if s=='SUN':
    print(7)
if s=='MON':
    print(6)
if s=='TUE':
    print(5)
if s=='WED':
    print(4)
if s=='THU':
    print(3)
if s=='FRI':
    print(2)
if s=='SAT':
    print(1)

Solution (Python):
d = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
S = input()
print(7 - d.index(S))

Solution (Python):
S = input()

if S=="SUN":
	print(7)
elif S=="MON":
	print(6)
elif S=="TUE":
	print(5)
elif S=="WED":
	print(4)
elif S=="THU":
	print(3)
elif S=="FRI":
	print(2)
elif S=="SAT":
	print(1)

Solution (Python):
S = input()
youbi = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
print(7 - youbi.index(S))

Solution (Python):
s=input()
day=['SUN','MON','TUE','WED','THU','FRI','SAT'] 
print(7-day.index(s))

Solution (Python):
today=input()
a=['SUN','MON','TUE','WED','THU','FRI','SAT' ]
for i in range(7):
    if a[i%7]==today:
        print(7-i)

Solution (Python):
weekday = {0:'SUN', 1:'MON', 2:'TUE', 3:'WED', 4:'THU', 5:'FRI', 6:'SAT'}
s=input()
for i in range(0, 7):
    if (weekday[i] == s):
        print(7-i)

Solution (Python):
S = str(input())
li = ["MON","TUE","WED","THU","FRI","SAT"]
for i in range(len(li)):
    if S == li[i]:
        print(6-i)
        break
if i == 5 and S == "SUN":
    print(7)

Solution (Python):
S=input()
if S=='SUN':
    print(7)
elif S=='MON':
    print(6)
elif S=='TUE':
    print(5)
elif S=='WED':
    print(4)
elif S=='THU':
    print(3)
elif S=='FRI':
    print(2)
elif S=='SAT':
    print(1)

Solution (Python):
days = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1 }


s = input()

print(days[s])

Solution (Python):

s = input()

if s == "SUN":
   print(7)

elif s == "MON":
   print(6)

elif s == "TUE":
   print(5)

elif s == "WED":
   print(4)

elif s == "THU":
   print(3)

elif s == "FRI":
   print(2)

elif s == "SAT":
   print(1)

Solution (Python):

S = input()
if S == "SUN":
  print("7")
elif S == "MON":
  print("6")
elif S == "TUE":
  print("5")
elif S == "WED":
  print("4")
elif S == "THU":
  print("3")
elif S == "FRI":
  print("2")
elif S == "SAT":
  print("1")

Solution (Python):
from __future__ import print_function


import sys
input = sys.stdin.readline

def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return

import math
import string
import fractions
from fractions import Fraction
from fractions import gcd

def lcm(n,m):
    return int(n*m/gcd(n,m))

import re
import array
import copy
import functools
import operator

import collections
import itertools
import bisect
import heapq


from heapq import heappush
from heapq import heappop
from heapq import heappushpop
from heapq import heapify
from heapq import heapreplace

from queue import PriorityQueue as pq

def reduce(p, q):
    common = fractions.gcd(p, q)
    return (p//common , q//common )



import random


def main():
    S = input().strip()
    if S=="SUN":
        print(7)
    elif S=="MON":
        print(6)
    elif S=="TUE":
        print(5)
    elif S=="WED":
        print(4)
    elif S=="THU":
        print(3)
    elif S=="FRI":
        print(2)
    elif S=="SAT":
        print(1)
    return

if __name__ == '__main__':
    main()

Solution (Python):
S = str(input())

if S == 'SUN':
	print(7)
	
if S == 'SAT':
	print(1)
	
if S == 'MON':
	print(6)
	
if S == 'TUE':
	print(5)

if S == 'WED':
	print(4)
	
if S == 'THU':
	print(3)
	
if S == 'FRI':
	print(2)

Solution (Python):
S = input()

weeks = ['SUN','MON','TUE','WED','THU','FRI','SAT']
weeks.reverse()
print(weeks.index(S)+1)

Solution (Python):


a = input()
li = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
for i in range(len(li)):
    if li[i] == a:
        print(i+1)

Solution (Python):
if __name__ == '__main__':
    s = input()
    if s == "SUN":
        print(7)
    if s == "MON":
        print(6)
    if s == "TUE":
        print(5)
    if s == "WED":
        print(4)
    if s == "THU":
        print(3)
    if s == "FRI":
        print(2)
    if s == "SAT":
        print(1)

Solution (Python):
week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT", ""]
week.reverse()
day = input()
print(week.index(day))

Solution (Python):
def main():
    d = dict(
        SUN=7,MON=6,TUE=5,WED=4,THU=3,FRI=2,SAT=1
    )
    s = input()
    print(d[s])

main()

Solution (Python):
S = input()

if S == "SUN":
    print(7)
if S == "MON":
    print(6)
if S == "TUE":
    print(5)
if S == "WED":
    print(4)
if S == "THU":
    print(3)
if S == "FRI":
    print(2)
if S == "SAT":
    print(1)

Solution (Python):
S = input()

weeldays = ["SUN","MON","TUE","WED","THU","FRI","SAT" ]


pos = weeldays.index(S)
print(7-pos)

Solution (Python):
w = {'SUN': 0,'MON': 1,'TUE': 2,'WED': 3,'THU': 4,'FRI': 5,'SAT': 6}
S = input()
print(7-w[S])

Solution (Python):
S = str(input())

for i, j in enumerate(['SUN','MON','TUE','WED','THU','FRI','SAT']):
  if S == j:
    print(7-i)

Solution (Python):
arr = ['NONE', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
s = input()
print(arr.index(s))

Solution (Python):
S = input()
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
ans = 7 - week.index(S)
print(ans)

Solution (Python):
import sys
s = input()
ls = ["SUN","MON","TUE","WED","THU","FRI","SAT","SUN"]
lsin = ls.index(s)
if s == "SUN":
    print(7)
else:
    print(7 - lsin)

Solution (Python):

S = input()

if S == "MON":
  print(6)
elif S == "TUE":
  print(5)
elif S == "WED":
  print(4)
elif S == "THU":
  print(3)
elif S == "FRI":
  print(2)
elif S == "SAT":
  print(1)
elif S == "SUN":
  print(7)

Solution (Python):
a = 'SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'
print(7 - a.index(input()))

Solution (Python):
S = input()
ans = 0
if S == 'SUN':
    ans = 7
elif S == 'MON':
    ans = 6
elif S == 'TUE':
    ans = 5
elif S == 'WED':
    ans = 4
elif S == 'THU':
    ans = 3
elif S == 'FRI':
    ans = 2
elif S == 'SAT':
    ans = 1
print(ans)

Solution (Python):
S = input()
if S == "SUN":
    print(7)
if S == "MON":
    print(6)
if S == "TUE":
    print(5)
if S == "WED":
    print(4)
if S == "THU":
    print(3)
if S == "FRI":
    print(2)
if S == "SAT":
    print(1)

Solution (Python):
day = ['', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
print(day.index(input()))

Solution (Python):
s = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
i = input()
print(7 - s.index(i))

Solution (Python):
a=['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-a.index(input()))

Solution (Python):
S=input()
d={"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
val=d[S]
print(val)

Solution (Python):
s = input()

if s == "SUN":
    s = 7
elif s == "MON":
    s = 6
elif s == "TUE":
    s = 5
elif s == "WED":
    s = 4
elif s == "THU":
    s = 3
elif s == "FRI":
    s = 2
else:
    s = 1

print(s)

Solution (Python):
x = input()

if x == 'SUN':
    a = 7
elif x == 'MON':
    a = 1
elif x == 'TUE':
    a = 2
elif x == 'WED':
    a = 3
elif x == 'THU':
    a = 4
elif x == 'FRI':
    a = 5
elif x == 'SAT':
    a = 6
b = 7 - a
if b == 0:
    print(7)
else:
    print(b)

Solution (Python):
S = input()
if S == 'SUN':
  print(7)
elif S == 'MON':
  print(6)
elif S == 'TUE':
  print(5)
elif S == 'WED':
  print(4)
elif S == 'THU':
  print(3)
elif S == 'FRI':
  print(2)
else:
  print(1)

Solution (Python):
s = str(input())
if str(s) == "SUN":
    print(7)
elif str(s) == "MON":
    print(6)
elif str(s) == "TUE":
    print(5)
elif str(s) == "WED":
    print(4)
elif str(s) == "THU":
    print(3)
elif str(s) == "FRI":
    print(2)
else:
    print(1)

Solution (Python):
char=input()
cnt_week={"SUN":7,"SAT":1,"FRI":2,"THU":3,"WED":4,"TUE":5,"MON":6}
print(cnt_week[char])

Solution (Python):
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    S = input()

    week = ('MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN')
    if S == 'SUN':
        ans = 7
    else:
        ans = 6 - week.index(S)
    print(ans)


main()

Solution (Python):
day = {"SUN":0,"MON":1,"TUE":2,"WED":3,"THU":4,"FRI":5,"SAT":6}

inday = input()

print(7-day[inday])

Solution (Python):
def main():
    S = input()

    if S == "SUN":
        print(7)
    elif S == "MON":
        print(6)
    elif S == "TUE":
        print(5)
    elif S == "WED":
        print(4)
    elif S == "THU":
        print(3)
    elif S == "FRI":
        print(2)
    elif S == "SAT":
        print(1)


if __name__ == "__main__":
    main()

Solution (Python):
s = input()

week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

for i in range(7):
    if s == week[i]:
        print(7 - i)

Solution (Python):
S = str(input())

if S == "SAT":
	print(1)
elif  S == "FRI":
	print(2)
elif  S == "THU":
	print(3)
elif  S == "WED":
	print(4)
elif  S == "TUE":
	print(5)
elif  S == "MON":
	print(6)
else:
	print(7)

Solution (Python):
s=input()
if s=='SAT':
    print("1")
elif s=="FRI":
    print("2")
elif s=="THU":
    print("3")
elif s=="WED":
    print("4")
elif s=="TUE":
    print("5")
elif s=="MON":
    print("6")
elif s=="SUN":
    print("7")

Solution (Python):
N = input()

day_d = {\
    "SUN":7,
    "MON":6,
    "TUE":5,
    "WED":4,
    "THU":3,
    "FRI":2,
    "SAT":1
    }

print(day_d[N])

Solution (Python):
arr = ['SAT','FRI','THU','WED','TUE', 'MON','SUN']
s = input()
print(arr.index(s) + 1)

Solution (Python):
S = input()
if S == 'SUN':
    print(7)
elif S == 'MON':
    print(6)
elif S == 'TUE':
    print(5)
elif S == 'WED':
    print(4)
elif S == 'THU':
    print(3)
elif S == 'FRI':
    print(2)
else:
    print(1)

Solution (Python):



days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
days = reversed(days)

s = input()

for i, day in enumerate(days):
    if s == day:
        print(i+1)

Solution (Python):
import math


def main():
    S = input()
    arr = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT',
           'SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    ans = 0
    flag = False

    if S == 'SUN':
        print(7)
        return

    for i in range(len(arr)):
        if arr[i] == S:
            flag = True

        if flag and arr[i] == 'SUN':
            break

        if flag:
            ans += 1

    print(ans)



if __name__ == '__main__':
    main()

Solution (Python):
y=['SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
n=input()
print(y.index(n)+1)

Solution (Python):
S=input()
s_dic={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
print(s_dic[S])

Solution (Python):
s = input()
dic = {'SUN':7, 'MON':6, 'TUE':5, 'WED':4, 'THU':3, 'FRI':2, 'SAT':1}
print(dic[s])

Solution (Python):

import sys
import math
import numpy as np
import itertools


m = list(input())

if m[0]=='S':
    if m[1]=='U':
        print("7")
    else:
        print("1")
elif m[0]=='M':
    print("6")
elif m[0]=='T':
    if m[1]=='U':
        print("5")
    else:
        print("3")
elif m[0]=='W':
    print("4")
elif m[0]=='F' :
    print("2")

Solution (Python):
S = input()
print({
'SUN': 7,
'MON': 6,
'TUE': 5,
'WED': 4,
'THU': 3,
'FRI': 2,
'SAT': 1,
}[S])

Solution (Python):


import math
import itertools


N = str(input())

if N == "SUN" :
  print (7)
elif N == "MON" :
  print (6)
elif N == "TUE" :
  print (5)
elif N == "WED" :
  print (4)
elif N == "THU" :
  print (3)
elif N == "FRI" :
  print (2)
elif N == "SAT" :
  print (1)

Solution (Python):
S=input()
mydict={'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1 }
print(mydict[S])

Solution (Python):
day_list = [ "SUN","MON", "TUE", "WED", "THU", "FRI", "SAT"]
day = input()
result_index = None
for index in range(len(day_list)):
    if day == day_list[index]:
        result_index = index
print(7-result_index)

Solution (Python):
S = input()
week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
index = week.index(S)
print(7-index)

Solution (Python):
a=['SUN','MON','TUE','WED','THU','FRI','SAT'][::-1]
print(a.index(input())+1)

Solution (Python):
s=input()
list=['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-list.index(s))

Solution (Python):
s = str(input())
if s == 'SUN':
    print(7)
elif s == 'MON':
    print(6)
elif s == 'TUE':
    print(5)
elif s == 'WED':
    print(4)
elif s == 'THU':
    print(3)
elif s == 'FRI':
    print(2)
elif s == 'SAT':
    print(1)

Solution (Python):
Week={'SUN':0,'MON':1,'TUE':2,'WED':3,'THU':4,'FRI':5,'SAT':6}
S=input()

print(7-Week[S])

Solution (Python):
s = str(input())

if s == 'SUN':
    print(7)
elif s == 'MON':
    print(6)
elif s == 'TUE':
    print(5)
elif s == 'WED':
    print(4)
elif s == 'THU':
    print(3)
elif s == 'FRI':
    print(2)
elif s == 'SAT':
    print(1)

Solution (Python):
S = input()

if S == "SAT":
    res = "1"
elif S == "SUN":
    res = "7"
elif S == "MON":
    res = "6"
elif S == "TUE":
    res = "5"
elif S == "WED":
    res = "4"
elif S == "THU":
    res = "3"
elif S == "FRI":
    res = "2"
print(res)

Solution (Python):
S = input()

x_lst = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

for i, x in enumerate(x_lst):
    if x == S:
        print(7 -i)
        break

Solution (Python):
s = input()

li = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

i = li.index(s)
ans = 7 - i
print(ans)

Solution (Python):
S = input()
if S == 'SUN':
    print(7)
elif S == 'MON':
    print(6)
elif S == 'TUE':
    print(5)
elif S == 'WED':
    print(4)
elif S == 'THU':
    print(3)
elif S == 'FRI':
    print(2)
elif S == 'SAT':
    print(1)

Solution (Python):
S = input()

if(S == 'SUN'):
    print(7)
elif(S == 'MON'):
    print(6)
elif (S == 'TUE'):
    print(5)
elif (S == 'WED'):
    print(4)
elif (S == 'THU'):
    print(3)
elif (S == 'FRI'):
    print(2)
else:
    print(1)

Solution (Python):
days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
s = input()
i = days.index(s)
n = 7 - i
print(n)

Solution (Python):
s = input()

if s=='SUN':
    ans=7
elif s=='MON':
    ans=6
elif s=='TUE':
    ans=5
elif s=='WED':
    ans=4
elif s=='THU':
    ans=3
elif s=='FRI':
    ans=2
else:
    ans=1

print(ans)

Solution (Python):
def judge(S):
    if S == "SUN":
        print(7)
    if S == "MON":
        print(6)
    if S == "TUE":
        print(5)
    if S == "WED":
        print(4)
    if S == "THU":
        print(3)
    if S == "FRI":
        print(2)
    if S == "SAT":
        print(1)

S = input()
judge(S)

Solution (Python):

s = input()

w = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

l = w.index(s)

print(7-l)

Solution (Python):
import sys
sys.setrecursionlimit(5 * 10**5)
input = sys.stdin.readline

d = input().rstrip('\n')

day = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(7 - day.index(d))

Solution (Python):
a=['SUN','MON','TUE','WED','THU','FRI','SAT' ]
b=input()

x=a.index(b)

print(7-x)

Solution (Python):
data = ['SUN','MON','TUE','WED','THU','FRI','SAT']
s = input()
idx = data.index(s)
print(7-idx)

Solution (Python):
s=input()

if s=="SUN":
    print("7")
elif s=="MON":
    print("6")
elif s=="TUE":
    print("5")
elif s=="WED":
    print("4")
elif s=="THU":
    print("3")
elif s=="FRI":
    print("2")
elif s=="SAT":
    print("1")
else:
    print()

Solution (Python):
s=input()
if s=="SUN":
    a=7
if s=="MON":
    a=6
if s=="TUE":
    a=5
if s=="WED":
    a=4
if s=="THU":
    a=3
if s=="FRI":
    a=2
if s=="SAT":
    a=1
print(a)

Solution (Python):
S = input() 

if S == 'SUN':
  print(7)
if S == 'MON':
  print(6)
if S == 'TUE':
  print(5)
if S == 'WED':
  print(4)
if S == 'THU':
  print(3)
if S == 'FRI':
  print(2)
if S == 'SAT':
  print(1)

Solution (Python):
x = input()
y = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7-y.index(x))

Solution (Python):
import sys
S=str(input())
list=['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in range(len(list)):
  if list[i]==S:
    print(7-i)

Solution (Python):
S = input()

s = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]

cnt = 0
for x in s:
    if S == x:
        print(7 - cnt)

    else:
        cnt += 1

Solution (Python):
days = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']

s = input()

if s == 'SUN':
    print(7)
else:
    print(days.index('SUN') - days.index(s))

Solution (Python):
import os
import numpy as np

class getStdin(object):
    @classmethod
    def get_str(cls):
        return str(input())


if __name__ == '__main__':
    n = getStdin.get_str()
    a = ['', 'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN']
    print(a.index(n))

    os.sys.exit(0)

Solution (Python):
s = str(input())

day = ['SUN','MON','TUE','WED','THU','FRI','SAT']

print(7-day.index(s))

Solution (Python):
s = input()
s_list = ['SUN','MON','TUE','WED','THU','FRI','SAT']
if s == s_list[0]:
  print(7)
elif s == s_list[1]:
  print(6)
elif s == s_list[2]:
  print(5)
elif s == s_list[3]:
  print(4)
elif s == s_list[4]:
  print(3)
elif s == s_list[5]:
  print(2)
else:
  print(1)

Solution (Python):
S = input()
if S == 'SAT':
    ans = 1
elif S == 'FRI':
    ans = 2
elif S == 'THU':
    ans = 3
elif S == 'WED':
    ans = 4
elif S == 'TUE':
    ans = 5
elif S == 'MON':
    ans= 6
else:
    ans = 7
print(ans)

Solution (Python):
S = str(input())
days = ['SUN', 'MON', 'TUE', 'WED' ,'THU' ,'FRI' ,'SAT']
remain = 7 - days.index(S)
if remain == 0:
  print(7)
else:
  print(remain)

Solution (Python):
youbi_list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"] 
S = input()
youbi_num = youbi_list.index(S)
day_num = 7 - youbi_num
print(day_num)

Solution (Python):


import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        
        
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    s = lines[0]

    return (s, )


def solve(s):

    week = dict()
    week["SUN"] = 7
    week["MON"] = 6
    week["TUE"] = 5
    week["WED"] = 4
    week["THU"] = 3
    week["FRI"] = 2
    week["SAT"] = 1

    return  week[s]

def main():
    
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

Solution (Python):
S = input()
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']

print(len(days) - days.index(S))

Solution (Python):
s = input()

if(s == "SAT"):
    print(1)
elif(s == "SUN"):
    print(7)
elif(s == "MON"):
    print(6)
elif(s == "TUE"):
    print(5)
elif(s == "WED"):
    print(4)
elif(s == "THU"):
    print(3)
elif(s == "FRI"):
    print(2)

Solution (Python):
s = input()
x = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
print(7-x.index(s))

Solution (Python):
import sys

f = sys.stdin
s = f.readline()[:-1]
week = {'SUN': 0, 'MON': 1, 'TUE': 2, 'WED': 3, 'THU': 4, 'FRI': 5, 'SAT': 6}

day = 7 - week[s]
print(day)

Solution (Python):
S=input()
if S == "MON":
  print(6)
elif S == "TUE":
  print(5)
elif S == "WED":
  print(4)
elif S == "THU":
  print(3)
elif S == "FRI":
  print(2)
elif S == "SAT":
  print(1)
else:
  print(7)

Solution (Python):
s = input()

if s == 'SUN':
    print("7")
elif s == 'MON':
    print("6")
elif s == 'TUE':
    print("5")
elif s == 'WED':
    print("4")
elif s == 'THU':
    print("3")
elif s == 'FRI':
    print("2")
elif s == 'SAT':
    print("1")

Solution (Python):
S = input()

if S == "SUN" :
    S = 7
elif S == "MON" :
    S = 6
elif S == "TUE" :
    S = 5
elif S == "WED" :
    S = 4
elif S == "THU" :
    S = 3
elif S == "FRI" :
    S = 2
else :
    S = 1

print(S)

Solution (Python):
week = {'SUN':7,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
s = input()
print(week[s])

Solution (Python):
s_list = ["SUN","SAT","FRI","THU","WED","TUE","MON"]
s = input()
for i in range(7):
    
    if s_list[i] == s:
        if s == "SUN":
            print(7)
        else:
            print(i)

Solution (Python):
S = input()
days = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7 - days.index(S))

Solution (Python):
S = input()
if(S=='SUN'):
    print('7')
elif(S=='MON'):
    print('6')
elif(S=='TUE'):
    print('5')
elif(S=='WED'):
    print('4')
elif(S=='THU'):
    print('3')
elif(S=='FRI'):
    print('2')
elif(S=='SAT'):
    print('1')

Solution (Python):
s = input()
days = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
res = 7 - days.index(s)
print(res)

Solution (Python):
S = input()
a = ['SUN','MON','TUE','WED','THU','FRI','SAT']
print(7 - a.index(S))

Solution (Python):
w=['MON','TUE','WED','THU','FRI','SAT','SUN','MON','TUE','WED','THU','FRI','SAT']
s=input()
ans=abs(w.index(s)-w.index('SUN'))
print(ans if ans else 7)

Solution (Python):
s = input()

if s=="SUN":
  print(7)
elif s=="MON":
  print(6)
elif s=="TUE":
  print(5)
elif s=="WED":
  print(4)
elif s=="THU":
  print(3)
elif s=="FRI":
  print(2)
else:
  print(1)

Solution (Python):
S=input()

if S=="SAT":
    print(1)
elif S=="FRI":
    print(2)
elif S=="THU":
    print(3)
elif S=="WED":
    print(4)
elif S=="TUE":
    print(5)
elif S=="MON":
    print(6)
elif S=="SUN":
    print(7)

Solution (Python):
s=input()
if s=='SAT':
    print("1")
elif s=="FRI":
    print("2")
elif s=="THU":
    print("3")
elif s=="WED":
    print("4")
elif s=="TUE":
    print("5")
elif s=="MON":
    print("6")
elif s=="SUN":
    print("7")

Solution (Python):

DAYS = ['SUN', 'MON', 'TUE' , 'WED', 'THU', 'FRI', 'SAT']
S = input()
N = 7 - DAYS.index(S)
print(N)

Solution (Python):
input_data = input()

if(input_data == "SUN"):
  print(7)
elif(input_data == "MON"):
  print(6)
elif(input_data == "TUE"):
  print(5)
elif(input_data == "WED"):
  print(4)
elif(input_data == "THU"):
  print(3)
elif(input_data == "FRI"):
  print(2)
elif(input_data == "SAT"):
  print(1)
else:
  pass

Solution (Python):
s = str(input())
week = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2,'SAT': 1 }
print(week[s])

Solution (Python):
s=input()
days = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
index = days.index(s)
print(6 - index + 1)

Solution (Python):

S = input()



if S == 'SUN':
    ans = 7
if S == 'MON':
    ans = 6
if S == 'TUE':
    ans = 5
if S == 'WED':
    ans = 4
if S == 'THU':
    ans = 3
if S == 'FRI':
    ans = 2
if S == 'SAT':
    ans = 1

print(ans)

Solution (Python):
S = input()
l = ['MON','TUE','WED','THU','FRI','SAT','SUN']
i = l.index(S) + 1
a = 7-i
if a == 0:
    a = 7
print(a)

Solution (Python):
S = input()
l = ['SAT','FRI','THU','WED','TUE','MON','SUN']
print(l.index(S) + 1)

Solution (Python):
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac
import fractions
from functools import reduce
from operator import mul
import bisect
import sys
import logging
import heapq
import itertools

logging.basicConfig(level=logging.ERROR)

input = sys.stdin.readline

setrecursionlimit(1000000)


def main():
	l =  list(reversed(['SUN','MON','TUE','WED','THU','FRI','SAT','UNTI']))
	print(l.index(input()[:-1]))

def factorization(n):
	if n<2:
		return []

	arr = []
	temp = n
	for i in range(2, int(-(-n**0.5//1))+1):
		if temp%i==0:
			cnt=0
			while temp%i==0:
				cnt+=1
				temp //= i
			arr.append([i, cnt])

	if temp!=1:
		arr.append([temp, 1])

	if arr==[]:
		arr.append([n, 1])

	return arr

def cmb(n,r):
    r = min(n-r,r)
    if r == 0: return 1
    over = reduce(mul, range(n, n - r, -1))
    under = reduce(mul, range(1,r + 1))
    return over // under

def zip(a):
	mae = a[0]
	ziparray = [mae]
	for i in range(1,len(a)):
		if(mae != a[i]):
			ziparray.append(a[i])
			mae = a[i]
	return ziparray

def is_prime(n):
	if n < 2: return False

	for k in range(2, int(math.sqrt(n)) + 1):
		if n % k == 0:
			return False

	return True

def list_replace(n,f,t):
	return [t if i==f else i for i in n]

def base_10_to_n(X, n):
	X_dumy = X
	out = ''
	while X_dumy>0:
		out = str(X_dumy%n)+out
		X_dumy = int(X_dumy/n)
	if(out == ''): return '0'
	return out

def gcd(numbers):
	return reduce(fractions.gcd, numbers)

def lcm(numbers):
    return reduce(lcm_base, numbers, 1)

def lcm_base(x, y):
    return (x * y) // fractions.gcd(x, y)

class Queue():
	def __init__(self):
		self.q = deque([])
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.popleft()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class Stack():
	def __init__(self):
		self.q = []
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.pop()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class graph():
	def __init__(self):
		self.graph = defaultdict(list)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
		self.graph[t].append(f)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
		self.graph[t].remove(f)
	def linked(self,f):
		return self.graph[f]

class dgraph():
	def __init__(self):
		self.graph = defaultdict(set)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
	def linked(self,f):
		return self.graph[f]

class PriorityQueue():
	def __init__(self):
		self.queue = []
	def push(self,i):
		heapq.heappush(self.queue,-i)
	def pop(self):
		return -1 * heapq.heappop(self.queue)
	def sum(self):
		return -sum(self.queue)

main()

Solution (Python):
import sys
S = input()
day = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
for i in range(7):
    if S==day[i]:
        print(i+1)
        sys.exit()

Solution (Python):
n = input()
youbi = ["MON","TUE","WED","THU","FRI","SAT","SUN"]
if n == "SUN":
    print(7)
else:
    print(6 - youbi.index(n))

Solution (Python):
l={"SUN":7,"MON":6,"TUE":5,"WED":4,"THU":3,"FRI":2,"SAT":1}
print(l[input()])

Solution (Python):
s = input()

if s == "SUN":
  ans = 7
elif s == "MON":
  ans = 6
elif s == "TUE":
  ans = 5
elif s == "WED":
  ans = 4
elif s == "THU":
  ans = 3
elif s == "FRI":
  ans = 2
elif s == "SAT":
  ans = 1

print(ans)

Solution (Python):
S = input()

W = {
  'SUN': 0,
  'MON': 1,
  'TUE': 2,
  'WED': 3,
  'THU': 4,
  'FRI': 5,
  'SAT': 6
}


if S in W:
  wn = W[S]
  print(7-wn)