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:
S = str(input())
l = ["Sunny", "Cloudy", "Rainy", "Sunny"]
for i in range(len(l)-1):
  if S == l[i]:
    print(l[i+1])
    break

Submission status: Accepted

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

S = input()

tommorow_weather = (weather_type.index(S) + 1) % 3

print(weather_type[tommorow_weather])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = ['Sunny', 'Cloudy', 'Rainy', 'Sunny']
S = input()
count = 0
for count in range(len(A)):
  if A[count] == S:
    break
  else:
    count += 1
print(A[count+1])

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:
a = input()
mydict = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
print(mydict[a])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(dic[w])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def q1():
    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])

if __name__ == '__main__':
    q1()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sam = input()
lima=['Sunny','Cloudy','Rainy']*2
print(lima[lima.index(sam) + 1])

Submission status: Accepted

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

S = input()
n = weather_list.index(S)
m = (n + 1) % 3
print(weather_list[m])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
A = ["Sunny", "Cloudy", "Rainy", "Sunny"]
for i in range(3):
    if s == A[i]:
        print(A[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, C, R = 'Sunny', 'Cloudy', 'Rainy'
t = {S:C, C:R, R:S}
print(t[input()])

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

Solution code:
s=input()

weather=["Sunny","Cloudy","Rainy"]
now=weather.index(s)
nextw=(now+1)%len(weather)
print(weather[nextw])

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()
tenki = "Sunny","Cloudy","Rainy","Sunny"

print(tenki[tenki.index(S)+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
s = input()
tenki = ['Sunny','Cloudy','Rainy','Sunny']

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

Submission status: Accepted

Solution code:
S = input()
P = ['Sunny', 'Cloudy', 'Rainy']
i = P.index(S)
if (i == 2):
    print(P[0])
else:
    print(P[i+1])

Submission status: Accepted

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

print(pred)

Submission status: Accepted

Solution code:
S = input()
weather = ['Sunny', 'Cloudy', 'Rainy']
next = weather.index(S) + 1
if S == 'Rainy':
    print(weather[0])
else:
    print(weather[next])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

for i, weather in enumerate(weathers):
    if S in weather:
        index = i
        break

next = (index + 1) % len(weathers)

answer = weathers[next]

print(answer)

Submission status: Accepted

Solution code:
s = input()
w = ["Sunny", "Cloudy", "Rainy"]
for i in range(3):
  if s == w[i]:
    if i == 2: j = 0
    else: j = i + 1
    print(w[j])
    break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

w = ""

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

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

w_d={'Sunny':'Cloudy','Cloudy':'Rainy','Rainy':'Sunny'}
S=ns()

print(w_d[S])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
from itertools import *
from collections import *

INF = float('inf')

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


def main():
    S = input().rstrip()
    index = weather.index(S)
    print(weather[index + 1])


if __name__ == '__main__':
    main()

Submission status: Accepted

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

num = WEARHER_PERIOD.index(s)
if num == 2:
    num = 0
else:
    num += 1

print(WEARHER_PERIOD[num])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
A = stdin.readline().rstrip()

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

for i in range(len(weather)):
    if A == weather[i]:
        t = i
        break
    else:
        i += 1


print(weather[t+1])

Submission status: Accepted

Solution code:
S=input()

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

print(weather[S])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
tenki = ["Sunny", "Cloudy", "Rainy"]
s = input()
ans = "Sunny"
for i in range(2):
    if s == tenki[i]:
        ans = tenki[i + 1]
    
print(ans)

Submission status: Accepted

Solution code:
# ABC 141: A – Weather Prediction
weather = ['Sunny', 'Cloudy', 'Rainy']
s = input()
print(weather[weather.index(s) + 1] if s != 'Rainy' else '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:
s=input()
a=['Sunny', 'Cloudy', 'Rainy']
i=0
while(s!=a[i]):
  i+=1
print(a[0] if i==2 else a[i+1])

Submission status: Accepted

Solution code:
from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect
#pypyではscipy, numpyは使えない
#from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson, minimum_spanning_tree
#from scipy.sparse import csr_matrix, coo_matrix, lil_matrix
#import numpy as np
from fractions import gcd
from math import ceil,floor, sqrt, cos, sin, pi, factorial
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**8)
INF = float('inf')

def main():
  s = input()
  if s=='Sunny':
    print('Cloudy')
  elif s=='Cloudy':
    print('Rainy')
  else:
    print('Sunny')
  
  
if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans_list = ( 'Sunny,Cloudy,Rainy ')
a = ans_list.split(',')
n = input()
for i in range(3):
    if a[i] == n:
        print(a[i+1])
        break
    if i == 2:
        print(a[0])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
import fractions
def main():
  S = ['Sunny','Cloudy','Rainy']
  s = input()
  i = 0
  while True:
    if s == S[i]:
      break
    i += 1
  print(S[(i+1)%3])
if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
S=["Sunny","Cloudy","Rainy"]
s=input()
if s=="Rainy":
    print("Sunny")

else:
    print(S[S.index(s)+1])

Submission status: Accepted

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

Submission status: Accepted

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

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", "Rainy"]
s = input()
print(weather[0] if weather.index(s) == 2 else weather[weather.index(s)+1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

weather = 'Sunny, Cloudy, Rainy, Sunny'.split(', ')
nex = dict(zip(weather[:-1], weather[1:]))

s = sys.stdin.readline().rstrip()

def main():
    print(nex[s])

if __name__ ==  '__main__':
    main()

Submission status: Accepted

Solution code:
s = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import collections
from collections import deque
#n = int(input())
#n, k = map(int, sys.stdin.readline().split())
s = input()
#x = list(map(int, sys.stdin.readline().split()))


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

Submission status: Accepted

Solution code:
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input()

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

weather_index = weather.index(s)

print(weather[(weather_index + 1) % 3])

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#                       _oo0oo_
#                      o8888888o
#                      88" . "88
#                      (| -_- |)
#                      0\  =  /0
#                    ___/`---'\___
#                  .' \\|     |// '.
#                 / \\|||  :  |||// \
#                / _||||| -:- |||||- \
#               |   | \\\  -  /// |   |
#               | \_|  ''\---/''  |_/ |
#               \  .-\__  '-'  ___/-. /
#             ___'. .'  /--.--\  `. .'___
#          ."" '<  `.___\_<|>_/___.' >' "".
#         | | :  `- \`.;`\ _ /`;.`/ - ` : | |
#         \  \ `_.   \_ __\ /__ _/   .-` /  /
#     =====`-.____`.___ \_____/___.-`___.-'=====
#                       `=---='
#
#
#     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#               佛祖保佑         永无BUG

l = ["Sunny", "Cloudy", "Rainy"]
print(l[(l.index(input())+1) % 3])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(3):
    if s == l[i]:
        print(l[i + 1])
        break
    if s == 'Rainy':
        print('Sunny')
        break

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

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:
A = ['Sunny','Cloudy','Rainy']
S = input()
for i in range(3):
  if A[i] == S:
    ans = A[(i+1)%3]
print(ans)

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

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

i = 0
while i < 4:
    if W_list[i] == S:
        print(W_list[i+1])
        break
    else:
        i = i+1

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
A - Weather Prediction
https://atcoder.jp/contests/abc141/tasks/abc141_a

"""
import sys


def solve(S):
    return {'Sunny': 'Cloudy', 'Cloudy': 'Rainy', 'Rainy': 'Sunny'}[S]


def main(args):
    S = input()
    ans = solve(S)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

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

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

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:
S = ['Sunny','Cloudy','Rainy']
A = input()
if A == S[0]:
  print(S[1])
elif A == S[1]:
  print(S[2])
else:
  print(S[0])

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

s = input()

if s == tenki[0]:
    print(tenki[1])

elif s == tenki[1]:
    print(tenki[2])

else:
    print(tenki[0])

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 permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy,copy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd

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

def main():
	lis = ["Sunny", "Cloudy", "Rainy"]
	s = input()
	print(lis[lis.index(s) - 2])


if __name__=='__main__':
	main()

Submission status: Accepted

Solution code:
s = input()
w = ["Sunny", "Cloudy", "Rainy"]
i = w.index(s)
i += 1
if i >= 3:
    i -= 3
print(w[i])

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:
wethers = ["Sunny", "Cloudy", "Rainy"]
S = input()
i = wethers.index(S)
print(wethers[i + 1] if i <= 1 else "Sunny")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#141_A
l = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
s = input()
print(l[s])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(dic[input()])

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

def main():
    S = input().strip()

    i = L.index(S)

    print(L[(i + 1) % 3])


if __name__ == "__main__":
    main()

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

Submission status: Accepted

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

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:
# coding: utf-8

weather = ['Sunny', 'Cloudy', 'Rainy']
S = input()
# print(S)

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    ans=["Sunny","Cloudy","Rainy"]
    print(ans[(ans.index(input())+1)%3])
if __name__ == '__main__':
    main()

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:
#date: 2020-03-15 21:21
import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S=input()
mylist=["Sunny", "Cloudy", "Rainy"]
number=0

for i in range(3):
    if S==mylist[i]:
        number=i
    else:
        pass
#print(number)
if number==2:
    print(mylist[0])
else:
    print(mylist[number+1])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from bisect import *
from heapq import *
from collections import *
from itertools import *
from functools import *

sys.setrecursionlimit(100000000)
input = lambda: sys.stdin.readline().rstrip()

arr = ['Sunny', 'Cloudy', 'Rainy']
S = input()
print(arr[(arr.index(S) + 1) % len(arr)])

Submission status: Accepted

Solution code:
S = input()

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

for i in range(3):
    if S==weather[i]:
        ind = i
        break

if ind==0 or ind==1:
    print(weather[ind+1])
else:
    print(weather[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:
w = ["Sunny", "Cloudy", "Rainy"]
s = input()
print(w[(w.index(s) + 1) % 3])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    S = input()
    d = {}
    d['Sunny'] = 'Cloudy'
    d['Cloudy'] = 'Rainy'
    d['Rainy'] = 'Sunny'

    return d[S]

print(solve())

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 math
# from itertools import permutations as permus
# from fractions import gcd
# from collections import deque,Counter

import numpy as np
# import scipy as scp

# 入力の受け取り
s = input()

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

idx = (lis.index(s) +1) % 3
ans = lis[idx]

print(ans)

Submission status: Accepted

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

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

print(rotate[(rotate.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:
weather=["Sunny","Cloudy","Rainy","Sunny"]

S=input()

for i in range(3):
    if(S==weather[i]):
        print(weather[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[0] == 'S':
    print('Cloudy')
elif s[0] == 'C':
    print('Rainy')
else:
    print('Sunny')

Submission status: Accepted

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

Submission status: Accepted

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

if a == 'Rainy':
  print('Sunny')
else:
  print(l[l.index(a) + 1])

Submission status: Accepted

Solution code:
x=input()
if x=='Sunny':
	print('Cloudy')
if x=='Cloudy':
	print('Rainy')
if x=='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()
dic={"Sunny":"Cloudy","Cloudy":"Rainy","Rainy":"Sunny"}
if S in dic:
  val=dic[S]
  print(val)