Problem:


Score: 100 points

Problem Statement

The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...

Given is a string S representing the weather in the town today. Predict the weather tomorrow.

Constraints

S is Sunny, Cloudy, or Rainy.

Input

Input is given from Standard Input in the following format:

S

Output

Print a string representing the expected weather tomorrow, in the same format in which input is given.

Sample Input 1

Sunny

Sample Output 1

Cloudy

In Takahashi's town, a sunny day is followed by a cloudy day.

Sample Input 2

Rainy

Sample Output 2

Sunny



Sample input:
Sunny


Sample output:
Cloudy

Submission status: Accepted

Solution code:
#n,m=map(int,input().split())
#p_3,p_4=map(int,input().split())
#n=int(input())
#a=int(input())
#b=int(input())
s=input()
#T=input()
#recipe=[list(input().split())for _ in range(n)]
#m=int(input())
#have=[list(input().split())for _ in range(m)]
#s=[list(input())for _ in range(n)]
#b=list(map(int,input().split()))
#b=list(map(int,input().split()))
#c=list(map(int,input().split()))
#c=list(map(float,input().split()))
#n=int(input())
#s=[list(map(int,input().split()))for _ in range(n)]
#s=[list(input().split())for _ in range(n)]
#s=[input()for _ in range(n)]
if s=="Sunny":
    print("Cloudy")
elif s=="Cloudy":
    print("Rainy")
elif s=="Rainy":
    print("Sunny")

Submission status: Accepted

Solution code:
a=input()

if a=='Sunny':
  print("Cloudy")

if a=='Cloudy':
  print("Rainy")
    
if a=='Rainy':
  print("Sunny")

Submission status: Accepted

Solution code:
ans = input()
tenki = ['Sunny','Cloudy','Rainy']
print(tenki[(tenki.index(ans)+1)%3])

Submission status: Accepted

Solution code:
l=['Sunny','Cloudy','Rainy']
s=input()

num=l.index(s)

print(l[num+1] if num+1<=2 else l[0])

Submission status: Accepted

Solution code:
a = input()

b = ['Sunny','Cloudy','Rainy']

for n,x in enumerate(b):
    if x == a:
        print(b[(n+1)%3])

Submission status: Accepted

Solution code:
s = input()
dic = {"Sunny":"Cloudy","Cloudy":"Rainy","Rainy":"Sunny"}

print(dic[s])

Submission status: Accepted

Solution code:
#atcoder beginner contest 141

weather = input("")

if weather == "Sunny":
    print("Cloudy")
elif weather == "Cloudy":
    print("Rainy")
elif weather == "Rainy":
    print("Sunny")

Submission status: Accepted

Solution code:

S = input()

d = {'Sunny':'Cloudy', 
	'Cloudy':'Rainy', 
	'Rainy':'Sunny',}

print(d[S])

Submission status: Accepted

Solution code:
w = str(input())
if w =="Sunny":
  print("Cloudy")
if w =="Cloudy":
  print("Rainy")
if w =="Rainy":
  print("Sunny")

Submission status: Accepted

Solution code:
a = input()[0]

if a == 'S':
  print('Cloudy')
elif a == 'C':
  print('Rainy')
else:
  print('Sunny')

Submission status: Accepted

Solution code:
weather_transition = ["Sunny", "Cloudy", "Rainy"]
today_weather = input()
print(weather_transition[((weather_transition.index(today_weather) + 1) % len(weather_transition))])

Submission status: Accepted

Solution code:
str = input()
if str == "Sunny":
    print("Cloudy")
if str == "Cloudy":
    print("Rainy")
if str == "Rainy":
    print("Sunny")

Submission status: Accepted

Solution code:
d={'Sunny':'Cloudy','Cloudy':'Rainy','Rainy':'Sunny'}
print(d[input()])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s = input()
if s=="Sunny":
  print("Cloudy")
elif s=="Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
s=input()
 
if s=="Sunny":
  print("Cloudy")
  
if s=="Cloudy":
  print("Rainy")
 
if s=="Rainy":
  print("Sunny")

Submission status: Accepted

Solution code:
s = input()
if s == "Sunny":
    print('Cloudy')
elif s == 'Cloudy':
    print('Rainy')
else:
    print("Sunny")

Submission status: Accepted

Solution code:
S=input()
if S[0]=='S':
  print('Cloudy')
elif S[0]=='C':
  print('Rainy')
else :
  print('Sunny')

Submission status: Accepted

Solution code:
x=input()
if x=="Sunny":
  print("Cloudy")
elif x=="Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
#coding:utf-8

S = input()

if S == 'Sunny':
    print('Cloudy')
elif S == 'Cloudy':
    print('Rainy')
else:
    print('Sunny')

Submission status: Accepted

Solution code:
S=input()
print('Sunny' if S=='Rainy' else 'Rainy' if S=='Cloudy' else 'Cloudy')

Submission status: Accepted

Solution code:
weather=['Sunny','Cloudy','Rainy']
s=input()
num=0
if s=='Sunny':
  num=0
elif s=='Cloudy':
  num=1
else:
  num=2
print(weather[(num+1)%3])

Submission status: Accepted

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

s = input()

if s == "Sunny":
    print("Cloudy")
elif s == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
weather = input()
if weather == "Sunny":
    print("Cloudy")
elif weather == "Cloudy":
    print("Rainy")
elif weather == "Rainy":
    print("Sunny")

Submission status: Accepted

Solution code:
# coding: utf-8
s = input()
wtoi = {'Sunny': 0, 'Cloudy': 1, 'Rainy': 2}
itow = {(i-1)%3: v for v, i in wtoi.items()}
print(itow[wtoi[s]])

Submission status: Accepted

Solution code:
a = input()
if a == "Sunny":
    print("Cloudy")
elif a == 'Cloudy':
    print('Rainy')
elif a == 'Rainy':
    print('Sunny')

Submission status: Accepted

Solution code:
s=input()
if(s=='Sunny'):
  print('Cloudy')
elif (s=='Cloudy'):
  print('Rainy')
elif (s=='Rainy'):
  print('Sunny')

Submission status: Accepted

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

MOD = 10 ** 9 + 7

S = input()

if S == 'Sunny':
    print('Cloudy')
elif S == 'Cloudy':
    print('Rainy')
elif S == 'Rainy':
    print('Sunny')

Submission status: Accepted

Solution code:
now = input()
weather = ["Sunny","Cloudy","Rainy"]
print(weather[(weather.index(now)+1) % 3])

Submission status: Accepted

Solution code:
s = input()

wet = ['Sunny', 'Cloudy', 'Rainy']

for i, w in enumerate(wet):
    if s == w:
        print(wet[(i+1)%3])
        break

Submission status: Accepted

Solution code:
now = input()
weather = ["Sunny", "Cloudy", "Rainy"]
print(weather[(weather.index(now) + 1) % 3])

Submission status: Accepted

Solution code:
a = input()

if a == "Sunny":
 print("Cloudy")

if a == "Cloudy":
 print("Rainy")

if a == "Rainy":
 print("Sunny")

Submission status: Accepted

Solution code:
weather = {"Sunny": "Cloudy", "Cloudy": "Rainy","Rainy": "Sunny"}
s = input()
if s in weather.keys():
    print(weather[s])

Submission status: Accepted

Solution code:
#input
S = input()

#output
if S[0] == "S":
    print("Cloudy")
elif S[0] == "C":
    print("Rainy")
elif S[0] == "R":
    print("Sunny")

Submission status: Accepted

Solution code:
s = input()
C = "Cloudy"
S = "Sunny"
R = "Rainy"
if s == R:
  print(S)
if s == S:
  print(C)
if s == C:
  print(R)

Submission status: Accepted

Solution code:
s=input()
if s=="Sunny":
    print("Cloudy")
elif s=="Cloudy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
a = input()
if a == 'Sunny':
    print('Cloudy')
elif a ==('Cloudy'):
    print('Rainy')
else:
    print('Sunny')

Submission status: Accepted

Solution code:
N = str(input(''))

if N == 'Sunny':
    ans = 'Cloudy'

elif N == 'Cloudy':
    ans = 'Rainy'

elif N == 'Rainy':
    ans = 'Sunny'

print(ans)

Submission status: Accepted

Solution code:
s = str(input())
if s ==  'Sunny':
  print('Cloudy')
elif s == 'Cloudy':
  print('Rainy')
else:
  print('Sunny')

Submission status: Accepted

Solution code:
s=input()

if s=="Sunny":
  a="Cloudy"
elif s=="Cloudy":
  a="Rainy"
else:
  a="Sunny"
  
print(a)

Submission status: Accepted

Solution code:
S=input()
if S=="Sunny":
    S="Cloudy"
elif S=="Cloudy":
    S="Rainy"
elif S=="Rainy":
    S="Sunny"
print(S)

Submission status: Accepted

Solution code:
today = input()
weather = ["Sunny", "Cloudy", "Rainy"]
i = 0
for v in weather:
  if today == v:
    print(weather[(i+1)%3])
  i += 1

Submission status: Accepted

Solution code:
s = input()

if s=="Sunny":
    print('Cloudy')
elif s == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
s=input()
if s=='Sunny':
  print('Cloudy')
elif s=='Cloudy':
  print('Rainy')
else:
  print('Sunny')

Submission status: Accepted

Solution code:
S = input()
weather = ['Sunny', 'Cloudy', 'Rainy']

if S == weather[-1]:
  print(weather[0])
else:
  print(weather[weather.index(S) + 1])

Submission status: Accepted

Solution code:
#problem-A
convert = {"Sunny":"Cloudy", "Cloudy":"Rainy", "Rainy":"Sunny"}
print(convert[input()])

Submission status: Accepted

Solution code:
s = input()
if(s == "Sunny"):
  print("Cloudy")
elif(s == "Rainy"):
  print("Sunny")
else:
  print("Rainy")

Submission status: Accepted

Solution code:
def solve():
    today = input()
    
    if today == 'Sunny':
        print('Cloudy')
    elif today == 'Cloudy':
        print('Rainy')
    else:
        print('Sunny')


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
def main():
    d = {"Sunny" : "Cloudy", "Cloudy" : " Rainy", "Rainy" : "Sunny"}
    print(d[input()])


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()

if s == "Sunny":
    print("Cloudy")
if s == "Cloudy":
    print("Rainy")
if s == "Rainy":
    print("Sunny")

Submission status: Accepted

Solution code:
d = {"Sunny":"Cloudy", "Cloudy":"Rainy", "Rainy":"Sunny"}
print(d[input()])

Submission status: Accepted

Solution code:
str = input()
week_whether = {'Sunny':0, 'Cloudy':1, 'Rainy':2}
weel_labels = {0:'Sunny',1:'Cloudy', 2: 'Rainy'}
print(weel_labels[(week_whether[str] + 1)%3])

Submission status: Accepted

Solution code:
today = input()

if today == 'Sunny':
    print('Cloudy')
elif today == 'Cloudy':
    print('Rainy')
elif today == 'Rainy':
    print('Sunny')

Submission status: Accepted

Solution code:
S = input()

w = ['Sunny', 'Cloudy', 'Rainy']
print(w[(w.index(S) + 1) % 3])

Submission status: Accepted

Solution code:
s=input()
if(s=="Sunny"):
  print("Cloudy")
elif(s=="Cloudy"):
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
a=input()
if a=="Sunny":
  print("Cloudy")
elif a=="Rainy":
  print("Sunny")
else:
  print("Rainy")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
#https://atcoder.jp/contests/abc141/tasks/abc141_a
import sys
#import collections

#n= int(input())
s= input()
#tmp = input().split()
#a = list(map(lambda a: int(a), tmp))

if(s[0]=="S"):
	print("Cloudy")
	sys.exit()
if(s[0]=="C"):
	print("Rainy")
	sys.exit()
else:
	print("Sunny")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(200000)
# local only
# if not __debug__:
#     fin = open('in_1.txt', 'r')
#     sys.stdin = fin
# local only
# input = sys.stdin.readline
# def ii(): return int(input())
# def mi(): return map(int, input().rstrip().split())
# def lmi(): return list(map(int, input().rstrip().split()))
# def fi(): return float(input())
# def mfi(): return map(float, input().rstrip().split())
# def lmfi(): return list(map(float, input().rstrip().split()))
# def li(): return list(input().rstrip())
# def debug(*args, sep=" ", end="\n"): print("debug:", *args, file=sys.stderr, sep=sep, end=end) if not __debug__ else None
# def exit(*arg): print(*arg); sys.exit()
# template


def main():
    a = ["Sunny", "Cloudy", "Rainy"]
    S = input()
    if S == a[0]:
        print(a[1])
    elif S == a[1]:
        print(a[2])
    else:
        print(a[0])
    return


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
wethear = ['Sunny','Cloudy','Rainy']
print(wethear[wethear.index(str(input())) - 2])

Submission status: Accepted

Solution code:
S=input()
print("Sunny" if S=="Rainy" else ("Cloudy" if S=="Sunny" else "Rainy") )

Submission status: Accepted

Solution code:
S = input()
if(S == "Sunny"):
    print("Cloudy")
if(S == "Cloudy"):
    print("Rainy")
if(S == "Rainy"):
    print("Sunny")

Submission status: Accepted

Solution code:

Weather = input()

if Weather == 'Sunny' :
  print('Cloudy')
elif Weather == 'Cloudy' :
  print('Rainy')
else :
  print('Sunny')

Submission status: Accepted

Solution code:
S=input()
weather=["Sunny","Cloudy","Rainy","Sunny"]

for i in range(4):
    if weather[i]==S:
        print(weather[i+1])
        break

Submission status: Accepted

Solution code:
S = input()

outputdict={"Sunny":"Cloudy","Cloudy":"Rainy","Rainy":"Sunny"}

print(outputdict.get(S))

Submission status: Accepted

Solution code:
S = input()

if S == 'Sunny':
    print('Cloudy')
elif S == 'Rainy':
    print('Sunny')
else:
    print('Rainy')

Submission status: Accepted

Solution code:
S = input()
if S == 'Sunny':
    print('Cloudy')
elif S == ('Cloudy'):
    print('Rainy')
elif S == ('Rainy'):
    print('Sunny')

Submission status: Accepted

Solution code:
S = input()
if S == 'Sunny':
	print('Cloudy')
elif S == 'Cloudy':
	print('Rainy')
elif S == 'Rainy':
	print('Sunny')

Submission status: Accepted

Solution code:
hensuu = input()
if hensuu == 'Sunny':
    print('Cloudy')
elif hensuu == 'Cloudy':
    print('Rainy')
else:
    print('Sunny')

Submission status: Accepted

Solution code:
s = input()
if s=='Sunny':
    print('Cloudy')
elif s=='Cloudy':
    print('Rainy')
else:
    print('Sunny')

Submission status: Accepted

Solution code:
weather = input()
if weather == "Sunny":
  print("Cloudy")
elif weather == "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
S=input()

if S=='Sunny':
  print('Cloudy')
elif S=='Cloudy':
  print('Rainy')
else:
  print('Sunny')

Submission status: Accepted

Solution code:
data = ['Sunny', 'Cloudy', 'Rainy']
s = input()
if s == data[0]:
  print(data[1])
elif s == data[1]:
  print(data[2])
else:
  print(data[0])

Submission status: Accepted

Solution code:
weather = str(input())

if weather == 'Sunny':
    print('Cloudy')
elif weather == 'Cloudy':
    print('Rainy')
elif weather == 'Rainy':
    print('Sunny')
else:
    print('EROOR')

Submission status: Accepted

Solution code:
s=input()
ls=['Sunny','Cloudy','Rainy']
x=ls.index(s)
if x==2:
  x=0
else:
  x+=1
print(ls[x])

Submission status: Accepted

Solution code:
input = input()

li = ['Sunny', 'Cloudy', 'Rainy']

if input == 'Sunny':
    print('Cloudy')
elif input == 'Cloudy':
    print('Rainy')
else:
    print('Sunny')

Submission status: Accepted

Solution code:
a = input()
if a=='Sunny':
  print('Cloudy')
elif a=='Cloudy':
  print('Rainy')
elif a=='Rainy':
  print('Sunny')

Submission status: Accepted

Solution code:
s = input()

if s=="Sunny":
    s = "Cloudy"
elif s == "Rainy":
    s = "Sunny"
elif s =="Cloudy":
    s = "Rainy"

print(s)

Submission status: Accepted

Solution code:
S = ["Sunny", "Cloudy", "Rainy"]

s_in = input()
if s_in == S[0]:
    ans = S[1]
elif s_in == S[1]:
    ans = S[2]
else:
    ans = S[0]

print(ans)

Submission status: Accepted

Solution code:
s = input()
 
wea = ["Sunny", "Cloudy", "Rainy"]
 
print("{}".format(wea[(wea.index(s) + 1) % 3]))

Submission status: Accepted

Solution code:
s=input()
if(s=="Rainy"):
  print("Sunny")
elif(s=="Sunny"):
  print("Cloudy")
else:
  print("Rainy")

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()
s=input()
w=["Sunny","Cloudy","Rainy","Sunny"]
print(w[w.index(s)+1])

Submission status: Accepted

Solution code:
s=input()
l=('Sunny','Cloudy', 'Rainy','Sunny')
for i in range (len(l)-1):
    if l[i]==s:
        print(l[i+1])

Submission status: Accepted

Solution code:
w = ['Sunny', 'Cloudy', 'Rainy' ]
print(w[w.index(input()) - 2])

Submission status: Accepted

Solution code:
w = ['Sunny', 'Cloudy', 'Rainy' ]

idx = w.index(input()) - 2
print(w[idx])

Submission status: Accepted

Solution code:
w = input()

weather = ['Sunny', 'Cloudy', 'Rainy' ]

idx = weather.index(w) - 2
print(weather[idx])

Submission status: Accepted

Solution code:
w = input()

weather = ['Sunny', 'Cloudy', 'Rainy' ]

idx = weather.index(w) + 1
if idx > 2:
  idx = 0
print(weather[idx])

Submission status: Accepted

Solution code:
s = input()
if s == 'Sunny':
    ans = 'Cloudy'
elif s == 'Cloudy':
    ans = 'Rainy'
else:
    ans = 'Sunny'
print(ans)

Submission status: Accepted

Solution code:
def main():

    weather_tuple = ("Sunny", "Cloudy", "Rainy")

    S = input()

    for i, weather in enumerate(weather_tuple):
        if S == weather:
            print(weather_tuple[(i + 1) % 3])

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
l = ['Sunny', 'Cloudy', 'Rainy']
S = input()
print(l[(l.index(S) + 1)%3])

Submission status: Accepted

Solution code:
S = input()
print('Cloudy' if S == 'Sunny' else 'Rainy'if S == 'Cloudy' else 'Sunny')

Submission status: Accepted

Solution code:
S=input()
if S=="Sunny":
  print("Cloudy")
elif S=="Rainy":
  print("Sunny")
else:
  print("Rainy")

Submission status: Accepted

Solution code:
print({'Sunny': 'Cloudy', 'Cloudy': 'Rainy', 'Rainy': 'Sunny'}[input()])

Submission status: Accepted

Solution code:
n = str(input())
if n == 'Sunny':
    print('Cloudy')
elif n=='Cloudy':
    print('Rainy')
else :
    print('Sunny')

Submission status: Accepted

Solution code:
S=input()
if S=="Rainy":
  print("Sunny")
if S=="Sunny":
  print("Cloudy")
if S=="Cloudy":
  print("Rainy")

Submission status: Accepted

Solution code:
str = input()

tom = 'Sunny'

if str == 'Sunny':
	tom = 'Cloudy'
elif str == 'Cloudy':
  	tom = 'Rainy'

print(tom)

Submission status: Accepted

Solution code:
S = str(input())
L = ('Sunny', 'Cloudy', 'Rainy')
print(L[(L.index(S)+1)%3])

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    d = {"Sunny": "Cloudy", "Cloudy": "Rainy", "Rainy": "Sunny"}
    s = str(input().rstrip('\n'))
    print(d[s])


if __name__ == '__main__':
    slove()

Submission status: Accepted

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

whether_dict = {'Sunny': 1, 'Cloudy': 2, 'Rainy': 3}

s = input()

a = whether_dict[s] + 1

if a > 3:
    print('Sunny')
elif a == 2:
    print('Cloudy')
elif a == 3:
    print('Rainy')

Submission status: Accepted

Solution code:
originWeather = input()
weatherList = ['Sunny', 'Cloudy', 'Rainy']

if originWeather == 'Sunny':
    print(weatherList[1])

if originWeather == 'Cloudy':
    print(weatherList[2])

if originWeather == 'Rainy':
    print(weatherList[0])

Submission status: Accepted

Solution code:
today = str(input())

if today == "Sunny":
  print("Cloudy")
elif today == "Rainy":
  print("Sunny")
else:
  print("Rainy")

Submission status: Accepted

Solution code:
input_weather=input()

if(input_weather=="Sunny"):
    print("Cloudy")
elif(input_weather=="Cloudy"):
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
s=input()
w=['Sunny','Cloudy','Rainy']
print(w[(w.index(s)+1)%3])

Submission status: Accepted

Solution code:
# ABC141 A - Weather Prediction

S = input()

if S == 'Sunny':
    print('Cloudy')
if S == 'Cloudy':
    print('Rainy')
if S == 'Rainy':
    print('Sunny')

Submission status: Accepted

Solution code:
A="Sunny"
B="Cloudy"
C="Rainy"
D=input()
if D==A:
  print(B)
elif D==B:
  print(C)
elif D==C:
  print(A)

Submission status: Accepted

Solution code:
a = input()
if a == "Rainy":
  print("Sunny")
elif a == "Sunny":
  print("Cloudy")
else:
  print("Rainy")

Submission status: Accepted

Solution code:
s = input()
lst = ["Sunny", "Cloudy", "Rainy"]

for i in range(3):
    if lst[i] == s:
        ans = lst[(i + 1) % 3]
        print(ans)

Submission status: Accepted

Solution code:
def solve():
    S = input()
    if S == "Sunny":
        ans = "Cloudy"
    elif S == "Cloudy":
        ans = "Rainy"
    elif S == "Rainy":
        ans = "Sunny"
    
    print(ans)
solve()

Submission status: Accepted

Solution code:
s = input()

t = {'Sunny':'Cloudy','Cloudy' : 'Rainy','Rainy':'Sunny'}

print(t[s])

Submission status: Accepted

Solution code:
S=input()
if S=='Sunny':
	print('Cloudy')
elif S=='Cloudy':
	print('Rainy')
else:
	print('Sunny')

Submission status: Accepted

Solution code:
now = input()

if now == "Sunny":
    print("Cloudy")
elif now == "Cloudy":
    print("Rainy")
elif now == "Rainy":
    print("Sunny")

Submission status: Accepted

Solution code:
S = input()

if S == "Sunny":
    print("Cloudy")
elif S == "Rainy":
    print("Sunny")
else:
    print("Rainy")

Submission status: Accepted

Solution code:
d = {'Sunny': 'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
print(d[input()])

Submission status: Accepted

Solution code:
s = input(str())
if s == 'Sunny':
  print('Cloudy')
if s == 'Cloudy':
  print('Rainy')
if s == 'Rainy':
  print('Sunny')

Submission status: Accepted

Solution code:
s = input()
print("Cloudy" if s == "Sunny" else "Sunny" if s == "Rainy" else "Rainy")

Submission status: Accepted

Solution code:
S = input()

clouds = ["Sunny", "Cloudy", "Rainy"]

if S == "Sunny":
    print("Cloudy")
elif S == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
import math
import queue

mod = 1e9+7

def swap(a,b):
    return (b,a)

def gcd(a,b):
    if (a<b):
        a,b = swap(a,b)
    if (b==0):
        return a
    else:
        return gcd(b,a%b)

def divisors(a):
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def main():
    s = input()
    if s=="Sunny":
        print("Cloudy")
    elif s=="Cloudy":
        print("Rainy")
    else:
        print("Sunny")
    return

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S=input()
w=['Sunny', 'Cloudy', 'Rainy', 'Sunny']
print(w[w.index(S)+1])

Submission status: Accepted

Solution code:
weathers = ["Sunny", "Cloudy", "Rainy"] 
s = input()
idx = weathers.index(s)
print(weathers[(idx+1)%3])

Submission status: Accepted

Solution code:
S = input()
#print("S =", S)
if S == "Sunny":
  print("Cloudy")
else:
  if S == "Cloudy":
    print("Rainy")
  else:
    print("Sunny")

Submission status: Accepted

Solution code:
s = ["Sunny", "Cloudy", "Rainy"]
to = input()
for i in range(3):
  if s[i] == to:
    print(s[(i+1)%3])
    break

Submission status: Accepted

Solution code:
#gcdは3.4.3だとfractionsにある
from fractions import gcd

from math import factorial as f

from math import ceil,floor,sqrt

from sys import exit

from copy import deepcopy
import numpy as np

import bisect
import re


ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))



def main():
    w = ['Sunny', 'Cloudy', 'Rainy','Sunny']
    s = input()
    for i in range(3):
        if w[i] == s:
            print(w[i+1])
            
main()

Submission status: Accepted

Solution code:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import bisect

mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000

def LI(): return list(map(int, sys.stdin.readline().split()))

S = str(input())
weather = ["Sunny","Cloudy","Rainy"]
print(weather[(weather.index(S)+1) % len(weather)])

Submission status: Accepted

Solution code:
l=["Sunny", "Cloudy", "Rainy", "Sunny", "Cloudy", "Rainy"]
s=input()
for i in range(6):
    if s==l[i]:
        print(l[i+1])
        exit(0)

Submission status: Accepted

Solution code:
def solve():
    s = input()
    if s == "Sunny":
        print("Cloudy")
    elif s == "Cloudy":
        print("Rainy")
    else:
        print("Sunny")

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
y = input()
if y == 'Sunny':
    print("Cloudy")
elif y == 'Cloudy':
    print("Rainy")
elif y == "Rainy":
    print("Sunny")

Submission status: Accepted

Solution code:
today = input()
if (today == "Sunny"): print("Cloudy")
elif (today == "Cloudy"): print("Rainy")
else: print("Sunny")

Submission status: Accepted

Solution code:
s = input()
weather = ['Sunny', 'Cloudy', 'Rainy']

print(weather[(weather.index(s)+1)%3])

Submission status: Accepted

Solution code:
s = input()
if s == "Sunny":
  print("Cloudy")
else:
  if s == "Cloudy":
    print("Rainy")
  else:
    print("Sunny")

Submission status: Accepted

Solution code:
S=str(input())
w=["Sunny","Cloudy","Rainy"]
if S=="Sunny":
	print(w[1])
elif S=="Cloudy":
    print(w[2])
elif S=="Rainy":
    print(w[0])

Submission status: Accepted

Solution code:
s = input()
if s == "Sunny":
    print("Cloudy")
if s == "Cloudy":
    print("Rainy")
if s == "Rainy":
    print("Sunny")

Submission status: Accepted

Solution code:
print(["Sunny","Cloudy","Rainy"][(["Sunny","Cloudy","Rainy"].index(input())+1)%3])

Submission status: Accepted

Solution code:

S = input()

if S == 'Sunny':
    print('Cloudy')
elif S == 'Cloudy':
    print('Rainy')
elif S == 'Rainy':
    print('Sunny')

Submission status: Accepted

Solution code:
S=input()

if S == 'Sunny':
  print('Cloudy')
if S == 'Cloudy':
  print('Rainy')
if S == 'Rainy':
  print('Sunny')

Submission status: Accepted

Solution code:
s=input()

a='Sunny'
b='Cloudy'
c='Rainy'

if s==a:
    print(b)
elif s==b:
    print(c)
else:
    print(a)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7
input=lambda :sys.stdin.readline().rstrip()
def resolve():
    s=input()
    if s[0]=='S':
        print("Cloudy")
    elif s[0]=='C':
        print("Rainy")
    else: print("Sunny")
resolve()

Submission status: Accepted

Solution code:
s = input()
a = {"Sunny": "Cloudy", "Cloudy": "Rainy", "Rainy": "Sunny"}
print(a[s])

Submission status: Accepted

Solution code:
from sys import stdin

a = stdin.readline().rstrip()
if a == "Sunny":
  print("Cloudy")
elif a== "Cloudy":
   print("Rainy")
else:
   print("Sunny")

Submission status: Accepted

Solution code:
list = ['Sunny', 'Cloudy', 'Rainy']
S = str(input())
i = list.index(S)
j = (i + 1) % 3
print(list[j])

Submission status: Accepted

Solution code:
s=input()

dic={"Sunny":"Cloudy","Cloudy":"Rainy","Rainy":"Sunny"}

print(dic[s])

Submission status: Accepted

Solution code:
S = str(input())
if S == "Sunny":
  print("Cloudy")
elif S == "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
st = input()
if st == "Sunny":
  print("Cloudy")
elif st == "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
W = ["Sunny", "Cloudy", "Rainy"]
print(W[(W.index(input()) + 1) % 3])

Submission status: Accepted

Solution code:
import sys
s=str(input())
if s=='Sunny':
    print('Cloudy')
elif s=='Rainy':
    print('Sunny')
else:
    print('Rainy')

Submission status: Accepted

Solution code:
input = input()
items = {'Sunny': 'Cloudy', 'Cloudy':'Rainy', 'Rainy': 'Sunny'}
print( items[input] )

Submission status: Accepted

Solution code:
S = input()
weathers = ['Sunny', 'Cloudy', 'Rainy']
print(weathers[(weathers.index(S)+1)%3])

Submission status: Accepted

Solution code:
a=input()

if a=="Sunny":
  print("Cloudy")
elif a=="Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
s = input()
weather = ["Sunny", "Cloudy", "Rainy"]

print(weather[(weather.index(s)+1)%3])

Submission status: Accepted

Solution code:
s=input()

if s=="Rainy":
  print("Sunny")
if s=="Sunny":
  print("Cloudy")
if s=="Cloudy":
  print("Rainy")

Submission status: Accepted

Solution code:
# -*- cording: utf-8 -*-
s = input()
if s == "Sunny":
  print("Cloudy")
elif s == "Cloudy":
  print("Rainy")
elif s == "Rainy":
  print("Sunny")

Submission status: Accepted

Solution code:
weather_list = ['Sunny', 'Cloudy', 'Rainy']

today = input()

if today == 'Sunny':
  num = 1
elif today == 'Cloudy':
  num = 2
elif today == 'Rainy':
  num = 0

print(weather_list[num])

Submission status: Accepted

Solution code:
s=input()
weather=['Sunny','Cloudy','Rainy','Sunny']
print(weather[weather.index(s)+1])

Submission status: Accepted

Solution code:
def weather_gen():
    while 1:
        yield "Sunny"
        yield "Cloudy"
        yield "Rainy"


def main():
    s = input()
    
    weather = weather_gen()
    
    for _ in range(3):
        if s == next(weather):
            print(next(weather))
            break
            

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S = input()

if S == "Sunny": print("Cloudy")
elif S == "Cloudy": print("Rainy")
else: print("Sunny")

Submission status: Accepted

Solution code:
def main():
    s = input()
    
    weather_list = {"Sunny": "Cloudy", "Cloudy": "Rainy", "Rainy": "Sunny"}
    
    print(weather_list[s])


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S = ['Sunny', 'Cloudy', 'Rainy']
today = input()
print(S[(S.index(today)+1)%3])

Submission status: Accepted

Solution code:
s=input()

if s ==  "Sunny":
	print("Cloudy")
elif s == "Cloudy":
	print("Rainy")
else:
	print("Sunny")

Submission status: Accepted

Solution code:
S = input()

T = {}
T["Sunny"] = "Cloudy"
T["Cloudy"] = "Rainy"
T["Rainy"] = "Sunny"

print(T[S])

Submission status: Accepted

Solution code:
weather = input()

if weather == 'Sunny':
	print('Cloudy')
elif weather == 'Cloudy':
	print('Rainy')
else:
	print('Sunny')

Submission status: Accepted

Solution code:
a = ["Sunny","Cloudy","Rainy"]

def f():
  S = input() 
  return a[(a.index(S) + 1) % 3]

print(f())

Submission status: Accepted

Solution code:
l=["Sunny","Cloudy","Rainy"]
print(l[l.index(input())-2])

Submission status: Accepted

Solution code:
whether = input()
if whether == 'Sunny':
    print('Cloudy')
elif whether == 'Cloudy':
    print('Rainy')
elif whether == 'Rainy':
    print('Sunny')

Submission status: Accepted

Solution code:
x=input()
if x == "Sunny":
    print("Cloudy")
elif x == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
a = input()
if (a == "Sunny"):
  print("Cloudy")
elif (a == "Cloudy"):
  print("Rainy")
elif (a == "Rainy"):
  print("Sunny")

Submission status: Accepted

Solution code:
tmr_tmp = input()
if tmr_tmp == "Sunny":
  print("Cloudy")
elif tmr_tmp == "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
s=input()
if s[0]=="S":
    print("Cloudy")
elif s[0]=="C":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
list = ['Sunny', 'Cloudy', 'Rainy']
s = input()
i = list.index(s)

if i == 0:
  print('Cloudy')
elif i == 1:
  print('Rainy')
else:
  print('Sunny')

Submission status: Accepted

Solution code:
S = input()

l = ['Sunny', 'Cloudy', 'Rainy']

i = l.index(S)

if i == 0:
  print('Cloudy')
elif i == 1:
  print('Rainy')
elif i == 2:
  print('Sunny')

Submission status: Accepted

Solution code:
s=["Sunny","Cloudy","Rainy"]
weather= input()
a=s.index(weather)
if a in (0,1):
    tomorrow=s[a+1]
else:
    tomorrow="Sunny"
print(tomorrow)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
S = input()
if S[0]=="S":
    print("Cloudy")
elif S[0]=="C":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
# coding: utf-8

import sys

s=input()
if s=="Sunny":
    print("Cloudy")
elif s=="Cloudy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
s = input()

if s == "Sunny":
  print("Cloudy")
  exit()
if s == "Cloudy":
  print("Rainy")
  exit()
print("Sunny")

Submission status: Accepted

Solution code:
S = input()
weather = ['Sunny', 'Cloudy', 'Rainy']
if S == weather[0]:
    ans = weather[1]
elif S == weather[1]:
    ans = weather[2]
elif S == weather[2]:
    ans = weather[0]
print(ans)