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:
a = input()
s = "Sunny"
c = "Cloudy"
r = "Rainy"
 
if a == s:
		print(c)
elif a == c:
		print(r)
		
else:
		print(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
w = input()

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

Submission status: Accepted

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

S = input()

pos = (weathers.index(S) + 1) % 3
print(weathers[pos])

Submission status: Accepted

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

Submission status: Accepted

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

if S==list[0]:
  print(list[1])
elif S==list[1]:
  print(list[2])
else:
  print(list[0])

Submission status: Accepted

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

Submission status: Accepted

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

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 = str(input())

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

print(weather.get(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sl = ["Sunny","Cloudy","Rainy"]
S = input()
ans = 0
for i in range(len(sl)):
    if (S == sl[i]):
        ans = (i+1) % 3

print(sl[ans])

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:
l = ["Sunny", "Cloudy", "Rainy", "Sunny"]
s = input()
print(l[l.index(s) + 1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Weather Prediction
w=['Sunny','Cloudy','Rainy']
s=input()

if s==w[0]:
    print(w[1])
elif s==w[1]:
    print(w[2])
else:
    print(w[0])

Submission status: Accepted

Solution code:
A = ["Sunny","Cloudy","Rainy","Sunny"];S = input();P = A.index(S)
print(A[P+1])

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()
w = ['Sunny', 'Cloudy', 'Rainy']
idx = w.index(S) + 1
if idx == 3:
    idx = 0
print(w[idx])

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")
elif S == "Rainy":
    print("Sunny")

Submission status: Accepted

Solution code:
# 22:32
inp = input()
if inp == "Sunny":
    print("Cloudy")
elif inp == "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 = str(input())

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

if list.index(S) == 2:
    print("Sunny")
else:
    print(list[list.index(S)+1])

Submission status: Accepted

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

Submission status: Accepted

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

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:
l = ["Sunny", "Cloudy", "Rainy"]
w = input()

if l.index(w) == 2:
    print("Sunny")

else:
    print(l[l.index(w) + 1])

Submission status: Accepted

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

a = weather.index(s)
if a == 2:
    print("Sunny")
else:
    print(weather[a+1])

Submission status: Accepted

Solution code:
l =['Sunny', 'Cloudy', 'Rainy']
a = input()
if a == 'Rainy':
  print('Sunny')
else:
  print(l[l.index(a)+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:
a = input()
if a == "Sunny":
  print("Cloudy")
elif a == "Rainy":
  print("Sunny")
else:
  print("Rainy")

Submission status: Accepted

Solution code:
s = str(input())

if s == 'Sunny':
   print('Cloudy')
elif s == 'Cloudy':
   print('Rainy')
elif s == '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()
s=["Sunny","Cloudy","Rainy"]
for i in range(len(s)):
    if S==s[i]:
        j=i+1
        if j==3:
            print(s[0])
        else:
            print(s[j])

Submission status: Accepted

Solution code:
from sys import stdin

w = {"Sunny": "Cloudy", "Cloudy": "Rainy", "Rainy": "Sunny"}
s = stdin.readline().rstrip()
print(w[s])

Submission status: Accepted

Solution code:
def resolve():
    S = input()

    if S == "Sunny":
        answer = "Cloudy"
    elif S == "Cloudy":
        answer = "Rainy"
    elif S == "Rainy":
        answer = "Sunny"

    print(answer)

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
s = input()
llist = {'Sunny':'Cloudy','Cloudy':'Rainy','Rainy':'Sunny'}

print(llist[s])

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()

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()

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

ans = lis[lis.index(S) + 1]
print(ans)

Submission status: Accepted

Solution code:
lst = ["Sunny","Cloudy","Rainy"]
print(lst[(lst.index(input())+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()
if S[0] == "S":
  print("Cloudy")
elif S[0] == "C":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
import sys

# S = input()
# N, M = map(int, input().split())
# nums = list(map(int, input().split()))
# nums_2d = [list(map(int, input().split())) for _ in range(N)]


def main():
    S = input()

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

    idx = weathers.index(S)

    print(weathers[idx+1])


if __name__ == '__main__':
    main()

Submission status: Accepted

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

i = tenki.index(s)
i = (i+1)%3

print(tenki[i])

Submission status: Accepted

Solution code:
s = str(input())
i = 0
list = ["Sunny", "Cloudy", "Rainy", "Sunny"]
for item in list:
    if (s == item and i < 3):
        print(list[i + 1])

    i += 1

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:
#import math
#import bisect
#import numpy as np
#import itertools
#import copy
import sys

input = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    s = input().rstrip('\n')
    w = {'Sunny': 'Cloudy', 'Cloudy': 'Rainy', 'Rainy': 'Sunny'}
    print(w[s])

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
num = input()

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

counter = num_list.index(num)


print(num_list[counter + 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()
weather = ['Sunny', 'Cloudy', 'Rainy']
for i,tmp in enumerate(weather):
    if s == tmp:
        print(weather[i-2])

Submission status: Accepted

Solution code:
s =input()

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

print(weather[s])

Submission status: Accepted

Solution code:
s = input()

tenki = ["Sunny", "Cloudy", "Rainy"]
i = tenki.index(s)
i = (i+1)%3
print(tenki[i])

Submission status: Accepted

Solution code:
s = input()

tenki = ["Sunny", "Cloudy", "Rainy"]
for i, a in enumerate(tenki):
    if a == s:
        i = (i+1)%3
        print(tenki[i])

Submission status: Accepted

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

for i in range(3):
    if W[i]==S:
        print(W[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()
wed=["Sunny","Cloudy","Rainy"]
ad=wed.index(S)
if (ad<=1):
  print(wed[ad+1])
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()
print('Sunny' if S=='Rainy' else 'Cloudy' if S=='Sunny' else 'Rainy')

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 = 'Sunny'
c = 'Cloudy'
r = 'Rainy'

w = {s:c,c:r,r:s}

print(w[input()])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

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:
i = input()

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

elif i == "Rainy" :
  print("Sunny")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

days = 'Sunny,Cloudy,Rainy'.split(',') * 2
print(days[days.index(s) + 1])

Submission status: Accepted

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

print(W[(W.index(input())+1)%3])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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")
else :
    print("Sunny")

Submission status: Accepted

Solution code:
s = input()
wet = ['Sunny', 'Cloudy', 'Rainy', 'Sunny']
for i in range(3):
    if s == wet[i]:
        print(wet[i+1])
        exit()

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:
weather = input()
if weather == "Sunny":
	print("Cloudy")
elif weather == "Cloudy":
	print("Rainy")
else:
	print("Sunny")

Submission status: Accepted

Solution code:
# coding: utf-8


def main():
    weathers = ['Sunny', 'Cloudy', 'Rainy']
    today = input()

    tomorrow = (weathers.index(today) + 1) % len(weathers)
    print(weathers[tomorrow])

    return 0


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
# coding: utf-8

def main():
    weather = input()
    
    if weather == 'Sunny':
        print('Cloudy')
        
    elif weather == 'Cloudy':
        print('Rainy')
        
    elif weather == 'Rainy':
        print('Sunny')
    
    return 0


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding: utf-8

 
def main():
 
    weather = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
    in_weather = input()
    
    print(weather[in_weather])
    
    return 0
 
 
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:
d = {'Sunny': 'Cloudy', 'Cloudy': 'Rainy', 'Rainy': 'Sunny'}
print(d[input()])

Submission status: Accepted

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

def main():
  s = input().strip()
  print({'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}[s])

if __name__=='__main__':
  main()

Submission status: Accepted

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

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()
a = ['Sunny','Cloudy','Rainy']
print(a[(a.index(s)+1) % 3])

Submission status: Accepted

Solution code:
s=str(input());a=["Sunny","Cloudy","Rainy"];ans=a.index(s)
if ans==2:
    print(a[0])
else:
    print(a[ans+1])

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()
list=["Sunny","Cloudy","Rainy"]
print(list[(list.index(S)+1)%3])

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":
  print("Cloudy")
elif s=="Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
#python3
from itertools import cycle
def main():
   s = input() 
   if s == 'Sunny':
        print('Cloudy')
   elif s == 'Cloudy':
        print('Rainy')
   else:
        print('Sunny')

main()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

Solution code:
S = input()
weather = ["Sunny", "Cloudy", "Rainy", "Sunny"]
for i in range (3):
    if S == weather[i]:
        print(weather[i+1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

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

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 == 'Rainy':
	print('Sunny')
if s == 'Sunny':
	print('Cloudy')
if s == 'Cloudy':
	print('Rainy')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
D = {'Sunny': 'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
print(D[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:
S=input()
weather={'Sunny':'Cloudy', 'Cloudy':'Rainy','Rainy':'Sunny'}
print(weather[S])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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()

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

print(WM[S])

Submission status: Accepted

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

i = l.index(S) +1

print(l[i])

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LII(rows_number): return [II() for _ in range(rows_number)]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

def main():
	S = IS()
	if(S=='Sunny'):print("Cloudy")
	elif(S=='Cloudy'):print("Rainy")
	else:print("Sunny")

main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# https://atcoder.jp/contests/abc141/tasks/abc141_a

print({"Sunny": "Cloudy", "Cloudy": "Rainy", "Rainy": "Sunny"}[input()])

Submission status: Accepted

Solution code:
s = input()

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

print(weatherlist[weatherlist.index(s)+1])

Submission status: Accepted

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

if w.index(s) == 2:
    print(w[0])
else:
    print(w[w.index(s)+1])

Submission status: Accepted

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

for i in range(len(dict)):
    if dict[i]==S:
        print(dict[(i+1)%3])

Submission status: Accepted

Solution code:
cloud=["Sunny","Cloudy","Rainy"]
S=input()
num=cloud.index(S)
if num==2:
    num=-1
print(cloud[num+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:
weather = {
    "Sunny": "Cloudy",
    "Cloudy": "Rainy",
    "Rainy": "Sunny"
}


def main():
    w = input()
    print(weather[w])


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:
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")
elif s == "Rainy":
    print("Sunny")
else:
    print("AHOKAOMAEWA!!!")

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:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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=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":
    print('Cloudy')
elif s =="Cloudy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
s = input()

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

print(mapping[s])

Submission status: Accepted

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

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:
w = ['Sunny','Cloudy','Rainy']
print(w[(w.index(input())+1) % 3])

Submission status: Accepted

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


def main():
    N = input()
    W = {'Sunny': 'Cloudy',
         'Cloudy': 'Rainy',
         'Rainy': 'Sunny'}
    print(W[N])


if __name__ == "__main__":
    main()

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()
print("Cloudy" if s=="Sunny" else "Sunny" if s=="Rainy" else "Rainy")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

sun = "Sunny"
cl = "Cloudy"
ra = "Rainy"

if s == sun:
    print(cl)
elif s == cl:
    print(ra)
else:
    print(sun)

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')
if s == 'Cloudy':
    print('Rainy')
if s == 'Rainy':
    print('Sunny')

Submission status: Accepted

Solution code:
s = input()
list = ["Sunny", "Cloudy", "Rainy", "Sunny"]
id = list.index(s)
print(list[id + 1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

Wetherlist = ["Sunny", "Cloudy", "Rainy"]
nextWether = Wetherlist.index(S)-2

print(Wetherlist[nextWether])

Submission status: Accepted

Solution code:
S = input()
w = ["Rainy","Cloudy", "Sunny"]
print(w[-1+w.index(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:
S = input()
if S == 'Rainy':
  print('Sunny')
elif S == 'Sunny':
  print('Cloudy')
elif S == 'Cloudy':
  print('Rainy')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=str(input())
a=['Sunny','Cloudy','Rainy','Sunny']
for i in range(4):
    if s==a[i]:
        print(a[i+1])
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

word_list = ["Sunny", "Cloudy", "Rainy"]
idx = word_list.index(s)
if idx == 2:
    print(word_list[0])
else:
    print(word_list[idx + 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()
t=["Sunny", "Cloudy", "Rainy","Sunny"]
print(t[t.index(s)+1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
X={"Sunny":1,"Cloudy":2,"Rainy":3,1:"Sunny",2:"Cloudy",3:"Rainy",4:"Sunny"}
print(X[X[S]+1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 = str(input())
if s == "Sunny":
  print("Cloudy")
elif s == "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = input()

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

Submission status: Accepted

Solution code:
S=input()
w = ['Sunny', 'Cloudy', 'Rainy']
for i in range(len(w)):
    if S == w[i]:
        print(w[(i+1)%3])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

for n in range(3):
    if S == X[n]:
        print(X[(n+1)%3])

Submission status: Accepted

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

s=input()

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

print(d[s])

Submission status: Accepted

Solution code:
S = input()

ans = ""

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

Submission status: Accepted

Solution code:
#141 a
s=input()
tenki=["Sunny","Cloudy","Rainy"]
num=(tenki.index(s)+1)%3
print(tenki[num])

Submission status: Accepted

Solution code:
def solve(inp):
    S = inp.readline().strip()

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

    return w[w.index(S) + 1]


def test(s):
    from io import StringIO
    print(solve(StringIO(s)))


def main():
    import sys
    result = solve(sys.stdin)
    if result:
        print(result)


if __name__ == '__main__':
    # test('50\n' + '100 ' * 50)
    main()

Submission status: Accepted

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

if S==w[0]:print(w[1])
elif S==w[1]:print(w[2])
elif S==w[2]:print(w[0])

Submission status: Accepted

Solution code:
# h,w = map(int,input().split())
S = input()

if S == 'Sunny':
  ans = 'Cloudy'
elif S == 'Cloudy':
  ans = 'Rainy'
elif S == 'Rainy':
  ans = 'Sunny'

print(ans)

Submission status: Accepted

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

print(l[l.index(s)+1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = ("Sunny","Cloudy","Rainy")
N = 1 + A.index(input())

print(A[N] if N<= 2 else A[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:
s = input()

#w = ["Sunny", "Cloudy", "Rainy"]

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:

S=input()

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