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.



Sample input:
SAT


Sample output:
1

Submission status: Wrong Answer

Solution code:
s=input()

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

print(6-t.index(s))

Submission status: Wrong Answer

Solution code:
s = input()
l = ['SUN', 'MON', 'TUR', 'WED', 'THU', 'FRI', 'SAT']
m = [7, 6, 5, 4, 3, 2, 1]

for i in range(7):
    if s == l[i]:
        print(m[i])

Submission status: Wrong Answer

Solution code:
a = input()


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

Submission status: Wrong Answer

Solution code:

s = input()

week=["SUN","MON","TUE","WED","TUE","FRI","SAT"]

for d in week:
    if d==s:
        print(7-week.index(d))

Submission status: Wrong Answer

Solution code:
s = input()
 
if s == 'SUN':
  print(0)
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)

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
import sys
a=str(input())
if a=="SUN":
    print(0)
elif a=="MON":
    print(6)     
elif a=="TUE":
    print(5)
elif a=="WED":
    print(4)
elif a=="THU":
    print(3)
elif a=="FRI":
    print(2)
else :
    print(1)

Submission status: Wrong Answer

Solution code:
S = input()
DAY = ['SUN','MON','TUE','WED','THU','FRI','SAT']
count = 0

for i in DAY:
    if S == i:
        break
    count += 1

if count == 0:
    print(0)
else:
    print(7 - count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    days = {'SUN':0,'MON':6,'TUE':5,'WED':4,'THU':3,'FRI':2,'SAT':1}
    S = input()
    print(days[S])
    return 0
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
s = input()
l = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
for i in l:
    if i == s:
        print(l.index(i) + 1)

Submission status: Wrong Answer

Solution code:
s=input()
l=["SUN","MON","TUE","WED","THU","FRI","SAT",]
for i in range(6):
    if s==l[i]:
        print(7-i)

Submission status: Wrong Answer

Solution code:
s=input();a=s[:2]
print(2 if a=="F"else 3 if a=="T"else 4 if a=="W"else 5 if a=="T"else 6 if s=="M"else 7 if s=="SUN"else 1)

Submission status: Wrong Answer

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

print(w[(w.index(S) + 1) % 7])

Submission status: Wrong Answer

Solution code:
week =input()

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

Submission status: Wrong Answer

Solution code:
N = str(input())
if N=="SAT":
  print("1")
elif N=="FRY":
  print("2")
elif N=="THU":
  print("3")
elif N=="WED":
  print("4")
elif N=="TUE":
  print("5")
elif N=="MON":
  print("6")
else:
  print("7")

Submission status: Wrong Answer

Solution code:
N = str(input())
if N=="SAT":
  print("1")
if N=="FRY":
  print("2")
if N=="THU":
  print("3")
if N=="WED":
  print("4")
if N=="TUE":
  print("5")
if N=="MON":
  print("6")
if N=="SUN":
  print("7")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if s == 'SUN':
    print(1)
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)

Submission status: Wrong Answer

Solution code:
s=input()
a=["SUN","MON","TUE","WED","THU","FRI","SAT"]
count=0
for i in range(7):
    if s==a[0]:
        break
    count+=1
print(7-count)

Submission status: Wrong Answer

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

print(d[s])

Submission status: Wrong Answer

Solution code:
a=input()
n=['SUN','MON','TUE','WED','THU','FRI','SAT']
if a!='SAT':
  print(7-n.index(a))
else:
  print(7)

Submission status: Wrong Answer

Solution code:
a=input()
n=['SUN','MON','TUE','WED','THU','FRI','SAT']
if a!='SAT':
  print(6-n.index(a))
else:
  print(7)

Submission status: Wrong Answer

Solution code:
S = input();
day = ["SUN","MON","TUE","WED","THU","FRI","SAT"];

print(day.index(S))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
    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

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#############
# Main Code #
#############

S = str(input())

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

for i in range(8):
  if S == l[i]:
    print(int(i))

Submission status: Wrong Answer

Solution code:
if input() == "SUN":
  print(7)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
    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

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#############
# Main Code #
#############

S = str(input())

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

for i in range(8):
  if S == l[i]:
    print(i)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
    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

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#############
# Main Code #
#############

S = str(input())

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

for i in range(8):
  if S == l[i]:
    print(i)

Submission status: Wrong Answer

Solution code:
s=input()
print(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def resolve():
  s = input()
  ans = 1
  if s == 'SUN':
    ans = 7
  elif s == 'SAT':
    ans = 6
  elif s == 'FRI':
    ans = 5
  elif s == 'THU':
    ans = 4
  elif s == 'WED':
    ans = 3
  elif s == 'TUE':
    ans = 2
  print(ans)
  return

if __name__ == "__main__":
  resolve()

Submission status: Wrong Answer

Solution code:
l=["MON","TUE","WED","THU","FRI","SAT","SUN"]
S=input()
print(6-l.index(S))

Submission status: Wrong Answer

Solution code:
s=input()
week=['SAT','FRI','THU','WED','TUE','MON','SUN']
for i in range(1,7):
    if s==week[i]:
        print(i)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
day = input()

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

Submission status: Wrong Answer

Solution code:
day_list1 = ['SUN','MON','TUE','WED','THU','FRI','SAT']
day_list2 = ['MON','TUE','WED','THU','FRI','SAT','SUN']
S=str(input())
print(day_list2[day_list1.index(S)])

Submission status: Wrong Answer

Solution code:
S=input()

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

Submission status: Wrong Answer

Solution code:
s = input()
x = [ '0', 'SAT', 'SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI']
for i in range(len(x)):
     if s == x[i]:
          print(i)

Submission status: Wrong Answer

Solution code:
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)
else:
    print(1)

Submission status: Wrong Answer

Solution code:
s=input()

if s == 'SUN':
    print(0)
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())
ans = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in range(7):
    if S == 'SUN':
        print(0)
    elif S == ans[i]:
        print(7-i)

Submission status: Wrong Answer

Solution code:
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(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
D=['MON','TUE','WED','THU','FRI','SAT','SUN']
for i in range(len(D)):
    if D[i]==S:
        print(i+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bion/env python3

S = input()

ans = 0

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


print(ans)

Submission status: Wrong Answer

Solution code:
from sys import stdin

S = stdin.readline().rstrip()
days  = ["MON","TUE","WED","THU","FRI","SAT","SUN"]

if S == "SUN":
    print(6)
else:
    i = days.index(S)
    print(6 - i)

Submission status: Wrong Answer

Solution code:
from sys import stdin

S = stdin.readline().rstrip()
days  = ["MON","TUE","WED","THU","FRI","SAT","SUN"]

if S == "SUN":
    print(days[6])
else:
    i = days.index(S)
    print(days[6 - i])

Submission status: Wrong Answer

Solution code:
from sys import stdin

S = stdin.readline().rstrip()
days  = ["MON","TUE","WED","THU","FRI","SAT","SUN"]

if S == "SUN":
    print(days[6])
else:
    i = days.index(S)
    print(6-i)

Submission status: Wrong Answer

Solution code:
S=input()
List = ['SUN','SAT','FRI','THU','WED','TUE','MON']
for i in range (len(List)):
  if List[i] == S:
    print(i)

Submission status: Wrong Answer

Solution code:
S = raw_input()
if S == "MON":
    print 6
elif S == "TUES":
    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

Submission status: Wrong Answer

Solution code:
S = input()
W = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]

print((-1 * W.index(S)) + 6)

Submission status: Wrong Answer

Solution code:
s=input()
if s=="SAT":
    print(1)
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=="FRY":
    print(2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
if a=="SUN":
    print(7)
elif a=="MUN":
    print(6)
elif a=="TUE":
    print(5)
elif a=="WED":
    print(4)
elif a=="THU":
    print(3)
elif a=="FRE":
    print(2)
elif a=="SAT":
    print(1)

Submission status: Wrong Answer

Solution code:
A=["SAT","MON","TUE","WED","THU","FRI","SUN"]
print(A.index(input())+1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
l = ['test','MON','TUE','WED','THU','FRI','SAT','SUN']
print(l.index(s))

Submission status: Wrong Answer

Solution code:
T=['SUN','MON','TUE','WED','THU','FRI','SAT']

S=str(input())

for i in range(6):
    if T[i]==S:
        print(T[i+1])
if T[6]==S:
    print(T[0])

Submission status: Wrong Answer

Solution code:
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=="TUE":
  print(3)
elif S=="FRI":
  print(2)
else:
  print(1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=str(input())

a='SUN'
b='MON'
c='TUS'
d='WED'
e='THU'
f='FRI'
g='SAT'

if S==a:
    print(7)

elif S==b:
    print(6)

elif S==c:
    print(5)

elif S==d:
    print(4)

elif S==e:
    print(3)

elif S==f:
    print(2)

elif S==g:
    print(1)

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
s=input().split()
a=['SUN','MON','TUE','WED','THU','FRI','SAT']

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

Submission status: Wrong Answer

Solution code:
S = input()
Weeks = ["MON","TUE","WED","THU","FRI","SAT","SUN"]
ind = Weeks.index(S)
print(6-ind)

Submission status: Wrong Answer

Solution code:
S = ["STA","FRI","THU","WED","TUE","MON","SUN"]
T = input()
count=1
for i in S:
    if i == T:
        print(count)
    count+=1

Submission status: Wrong Answer

Solution code:
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np
# import math
mod = 10**9 + 7

# n = int(input())
# a = list(map(int, input().split()))
s = input()
l = ['SUN','MON','TUE','WED','THU','FRI','SAT']
if s == l[0]: print(l[1])
elif s == l[1]: print(l[2])
elif s == l[2]: print(l[3])
elif s == l[3]: print(l[4])
elif s == l[4]: print(l[5])
elif s ==l[5]: print(l[6])
elif s == l[6]: print(l[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
list=["SUN","SAT","FRI","THU","WED","TUE","MON"] 
print(list.index(S))

Submission status: Wrong Answer

Solution code:
s = input()

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

ans = l.index(s)

if ans == 0:
    ans = 7

print(ans)

Submission status: Wrong Answer

Solution code:
t="SUN,MON,TUE,WED,THU,FRI,SAT"
s=t.split(",")
print((7-s.index(input()))%7)

Submission status: Wrong Answer

Solution code:
S = input()

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

for i in range(7):
  if S==st[i]:
    print(i+1)

Submission status: Wrong Answer

Solution code:
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)
else:
    print(6)

Submission status: Wrong Answer

Solution code:
S = input()


def judge(S):
    dow = 'SUN,MON,TUE,WED,THU,FRI,SAT'.split(',')
    if (S == dow[0]):
        return 7
    for i in range(1, len(dow)):
        if (S == dow[i]):
            return i


print(judge(S))

Submission status: Wrong Answer

Solution code:
s = input()
l = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
for i in range(7):
    if s == 'SUN':
        print(7)
    else:
        if s == l[i]:
            print(7-i)

Submission status: Wrong Answer

Solution code:
A=["MON","TUE","WED","THU","FRI","SAT","SUN"]
S=input()
for i in range(7):
  if A[i] == S:
    print(6-i)
    break

Submission status: Wrong Answer

Solution code:
l= ["SUN","MON","TUE","WED","THU","FRI","SAT"]
s=input()
ans=0
for i in range(7):
  if s==l[i]:
    ans =(7-i)%7
print(ans)

Submission status: Wrong Answer

Solution code:
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=="STA" :
	print(1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(memo.index(a)+1)

Submission status: Wrong Answer

Solution code:
s = input()
d = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]
print(d[(d.index(s)+1)%7])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
list=["SUN","MON","TUE","WED","THU","FRI","SUT"]
print(7-S.index(S))

Submission status: Wrong Answer

Solution code:
l=[['SUM',7],['MON',6],['TUE',5],['WED',4],['THU',3],['FRY',2],['SAT',1]]
s=str(input())
for i in range(7):
  if s==l[i][0]:
    print(l[i][1])

Submission status: Wrong Answer

Solution code:
a = ['MON','TUE','WED','THU','FRI','SAT','SUN']

S = input() 

print( 6 - int(a.index(S)))

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    S = input()
    W = {'SUN': 1,
         'MON': 2,
         'TUE': 3,
         'WED': 4,
         'THU': 5,
         'FRI': 6,
         'SAT': 7}

    print(W[S])


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
week_list = [0,'MON','TUE','WED','THU','FRI','SAT','SUN']

today = input()

for day in week_list:
    if day == today:
        
        print(week_list.index(day))

Submission status: Wrong Answer

Solution code:
s = input()
list = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
id = list.index(s)
print(list[id + 1])

Submission status: Wrong Answer

Solution code:
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 == 'FRY':
  print('2')
else:
  print('1')

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
day = input()
week = ["SAT","FRY","THU","WED","TUE","MON","Sun"]
for s in range(len(week)):
  if day == week[s]:
    print(s + 1)

Submission status: Wrong Answer

Solution code:
S = input()

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

a = List.index(S)

if a == 0:
    a = 7

print(a)

Submission status: Wrong Answer

Solution code:
import sys
row = sys.stdin.readline
def read_string(row):
    return row().rstrip()

S = read_string(row)
dic = {"SUN": 7,
       "SAT":6,
       "FRI": 5,
       "THU":4,
       "WED": 3,
       "TUE":2,
       "MON": 1}
print(dic[S])

Submission status: Wrong Answer

Solution code:
day_dict = {"SUN":"0","MON":"6","TUE":"5","WED":"4","THU":"3","FRI":"2","SAT":"1"} 
S = input()
print(day_dict[S])

Submission status: Wrong Answer

Solution code:
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)
elif s=='SUN':
    print(0)

Submission status: Wrong Answer

Solution code:
s= input ("please enter the day")
if s == "SAT" :
    print ("1 \n It is Saturday today, and tomorrow will be Sunday")
elif s == "SUN" :
    print ("7 \n It is Sunday today, and seven days later, it will be Sunday again.")
elif s == "MON" :
    print (" 6 \n It is monday today, and six days later, it will be Sunday again.")
elif s == "TUE" :
    print (" 5 \n It is thusday today, and five days later, it will be Sunday again.")
elif s =="WED" :
    print (" 4 \n It is wednsday today, and four days later, it will be Sunday again.")
elif s == "THU" :
    print ("3 \n It is thusday today, and three days later, it will be Sunday again.")
else:
    print ("2 \n It is friday today, and two days later, it will be Sunday again.")

Submission status: Wrong Answer

Solution code:
day = input ("please enter the day")
if day == "SAT" :
    print ("1 \n It is Saturday today, and tomorrow will be Sunday")
elif day == "SUN" :
    print ("7 \n It is Sunday today, and seven days later, it will be Sunday again.")
elif day == "MON" :
    print (" 6 \n It is monday today, and six days later, it will be Sunday again.")
elif day == "TUE" :
    print (" 5 \n It is thusday today, and five days later, it will be Sunday again.")
elif day =="WED" :
    print (" 4 \n It is wednsday today, and four days later, it will be Sunday again.")
elif day == "THU" :
    print ("3 \n It is thusday today, and three days later, it will be Sunday again.")
else:
    print ("2 \n It is friday today, and two days later, it will be Sunday again.")

Submission status: Wrong Answer

Solution code:
day = str(input())
day = day.upper()

if (day == 'SAT'):
    print('1\n')
    print('It is Saturday today, and tomorrow will be Sunday.')
elif(day =='SUN'):
    print('7\n')
    print('It is Sunday today, and seven days later, it will be Sunday again.')
elif(day=='MON'):
    print('6\n')
    print('It is Monday today,and sex day later, it will be Sunday again.')
elif(day=='TUE'):
    print('5\n')
    print('It is Tuesday today, and five days later, it will be Sunday again.')    
elif(day=='WED'):
    print('4\n')
    print('It is Wednesday today, and four days later, it will be Sunday again.')    
elif(day=='THU'):
    print('3\n')
    print('It is thursday today, and three days later, it will be Sunday again.')    
elif(day=='FRI'):
    print('2\n')
    print('It is Friday today, and five days later, it will be Sunday again.')
else :
    print('enter again')

Submission status: Wrong Answer

Solution code:
day = str(input())
day = day.upper()

if (day == 'SAT'):
    print('1\nIt is Saturday today, and tomorrow will be Sunday.')
elif(day =='SUN'):
    print('7\nIt is Sunday today, and seven days later, it will be Sunday again.')
elif(day=='MON'):
    print('6\nIt is Monday today,and sex day later, it will be Sunday again.') 
elif(day=='TUE'):
    print('5\nIt is Tuesday today, and five days later, it will be Sunday again.')    
elif(day=='WED'):
    print('4\nIt is Wednesday today, and four days later, it will be Sunday again.')    
elif(day=='THU'):
    print('3\nIt is thursday today, and three days later, it will be Sunday again.')    
elif(day=='FRI'):
    print('2\nIt is Friday today, and five days later, it will be Sunday again.')   
else :
    print('enter again')

Submission status: Wrong Answer

Solution code:
S = input("Enter The Day: ")
if(S == "SUN"):
    print(7)
    print("It is Sunday today, and seven days later, it will be Sunday again.")
elif(S == "SAT"):
    print(1)
    print("It is Saturday today, and tomorrow will be Sunday.")
elif(S == "MON"):
    print(6)
    print("It is Monday today, and six days later, it will be Sunday.")
elif(S == "TUE"):
    print(5)
    print("It is Tuesday today, and five days later, it will be Sunday.")
elif(S == "WED"):
    print(4)
    print("It is Wednesday today, and four days later, it will be Sunday.")
elif(S == "THU"):
    print(3)
    print("It is Thurusday today, and three days later, it will be Sunday.")
elif(S == "FRI"):
    print(2)
    print("It is Friday today, and two days later, it will be Sunday.")
else:
    print("Wrong Day Name")

Submission status: Wrong Answer

Solution code:
S = input("Enter The Day: ")
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)
elif(S == "FRI"):
    print(2)
else:
    print("Wrong Day Name")