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

Submission status: Accepted

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

Submission status: Accepted

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

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

import sys
import math
import time
#import numpy as np
import collections
from collections import deque
from collections import Counter
import queue
import copy
import bisect
import heapq
import itertools


#sys.setrecursionlimit(10**7)
#N, Q = map(int, input().split())
#G = [list(input()) for i in range(H)]
#INF = V * 10001
#A = [int(i) for i in input().split()]
#AB = [list(map(int, input().split())) for _ in range(K)]
#CW = [list(map(int, list(input()))) for _ in range(H)]


S = str(input())

if("Sunny"==S):
  print("Cloudy")
elif("Cloudy"==S):
  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:
s=input()
if s[0]=='S':
  print('Cloudy')
elif s[0]=='C':
  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:
A = ["Sunny", "Cloudy", "Rainy"]
print(A[(A.index(input())+1)%3])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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()
b=['Sunny','Cloudy','Rainy']
for i in range(3):
  if i==2:
    print('Sunny')
    break
  if b[i]==a :
    print(b[i+1])
    break

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))

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:
#Sunny, Cloudy, Rainy
s=input()
if s[0]=='S':
  print("Cloudy")
if s[0]=='C':
  print("Rainy")
if s[0]=='R':
  print("Sunny")

Submission status: Accepted

Solution code:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():

    S = input()

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

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

    else:
        ans = 'Sunny'

    print(ans)


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

Submission status: Accepted

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

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

s = stdin.readline().rstrip()

if s == 'Sunny':
    ans = 'Cloudy'
elif s == 'Cloudy':
    ans = 'Rainy'
else:
    ans = 'Sunny'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

b=input()

print(a[a.index(b)+1])

Submission status: Accepted

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

Submission status: Accepted

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

index = weather.index(s)
index = (index + 1) % 3

print(weather[index])

Submission status: Accepted

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

print(Weather_List[Weather_List.index(str(input()))+1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# abc141_a.py
# https://atcoder.jp/contests/abc141/tasks/abc141_a

# A - Weather Prediction /
# 実行時間制限: 2 sec / メモリ制限: 1024 MB
# 配点: 100点

# 問題文
# 高橋君の住む町の天気は、一日ごとに晴れ(Sunny)、くもり(Cloudy)、雨(Rainy)、晴れ、くもり、雨、… と周期的に変化します。
# 今日の天気を表す文字列 Sが与えられるので、明日の天気を予測してください。

# 制約
#     Sは Sunny, Cloudy, Rainy のいずれかである

# 入力
# 入力は以下の形式で標準入力から与えられる。
# S

# 出力
# 明日の天気を入力と同じ形式で出力せよ。

# 入力例 1
# Sunny

# 出力例 1
# Cloudy

# 高橋くんの住む町では、晴れの日の次の日の天気はくもりです。

# 入力例 2
# Rainy

# 出力例 2
# Sunny


global FLAG_LOG
FLAG_LOG = False


def log(value):
    # FLAG_LOG = True
    # FLAG_LOG = False
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    S = lines[0]
    # N = int(lines[0])
    # N, M = list(map(int, lines[0].split()))
    # values = list(map(int, lines[1].split()))
    # values = list(map(int, lines[2].split()))
    # values = list()
    # for i in range(N):
    #     values.append(int(lines[i]))
    # valueses = list()
    # for i in range(N):
    #     valueses.append(list(map(int, lines[i+1].split())))

    if S == 'Sunny':
        result = 'Cloudy'
    if S == 'Cloudy':
        result = 'Rainy'
    if S == 'Rainy':
        result = 'Sunny'

    return [result]


# 引数を取得
def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines


# テストデータ
def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['Sunny']
        lines_export = ['Cloudy']
    if pattern == 2:
        lines_input = ['Rainy']
        lines_export = ['Sunny']
    return lines_input, lines_export


# 動作モード判別
def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode


# 主処理
def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    # if mode > 0:
    #     print(f'lines_input=[{lines_input}]')
    #     print(f'lines_export=[{lines_export}]')
    #     print(f'lines_result=[{lines_result}]')
    #     if lines_result == lines_export:
    #         print('OK')
    #     else:
    #         print('NG')
    # finished = time.time()
    # duration = finished - started
    # print(f'duration=[{duration}]')


# 起動処理
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
today = input()

w=['Sunny', 'Cloudy', 'Rainy']
if today == w[0]:
  print(w[1])
elif today == w[1]:
  print(w[2])
else:
  print(w[0])

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

Submission status: Accepted

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

if s == 'Sunny':
    print('Cloudy')

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

else:
    print('Sunny')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
t = 1
# t = input()
# t = int(t)
def max(a,b):
	if a > b:
		return a
	return b
while t > 0:
	t -= 1
	s = input()
	ans = ""
	if s == "Sunny":
		ans = "Cloudy"
	elif s == "Cloudy":
		ans = "Rainy"
	else:
		ans = "Sunny"
	print(ans)
	# n = int(input())
	# v = list(map(int,input().strip().split()))[0:n]
	# # m = {}
	# l = []
	# for i in range(n):
	# 	l.append(0)
	# # ans = 0
	# j = 1
	# for i in v:
	# 	l[i-1] = j
	# 	j += 1
	# # print(ans)
	# for i in l:
	# 	print(i,end=" ")

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
import sys
wether = input()
base = ['Sunny','Cloudy','Rainy']

if wether not in base: sys.exit()

print(base[base.index(wether)+1]) if wether != base[-1] else print(base[0])

Submission status: Accepted

Solution code:
import sys
import itertools
wether = input()
base = ['Sunny','Cloudy','Rainy']

if wether not in base: sys.exit()

print(base[base.index(wether)+1]) if wether != base[-1] else print(base[0])

Submission status: Accepted

Solution code:
import sys
import itertools
wether = input()
if not ( wether == 'Sunny' or wether == 'Cloudy' or wether == 'Rainy'): sys.exit()

base = ['Sunny','Cloudy','Rainy']
print(base[base.index(wether)+1]) if wether != base[-1] else print(base[0])

Submission status: Accepted

Solution code:
import sys
import itertools
wether = input()
base = ['Sunny','Cloudy','Rainy']

print(base[base.index(wether)+1]) if wether != base[-1] else print(base[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
W = input()
if W == "Sunny":
  print("Cloudy")
elif W == "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:
n=str(input())
if n==('Sunny'):
    print('Cloudy')
if n==('Cloudy'):
    print('Rainy')
if n==('Rainy'):
    print('Sunny')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
z="Sunny","Rainy","Cloudy"
print(z[z.index(input())-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()
List = ["Sunny", "Cloudy", "Rainy"]
res = 0
for i in range(3):
  if S == List[i]:
    res = i+1
if res == 3:
  res = 0
print(List[res])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
    S = input()
    d = {
        "Sunny": "Cloudy",
        "Cloudy": "Rainy",
        "Rainy": "Sunny"
    }
    print(d[S])
    
if '__main__' == __name__:
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(weather[weather.index(S)+1])

Submission status: Accepted

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

print(weather[input()])

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
s = input()

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

Submission status: Accepted

Solution code:
N = input()

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

for i in range(3):
  if N == 'Rainy':
    print('Sunny')
    break
  elif N == W[i]:
    print(W[i+1])
  else:
    pass
  i+=1

Submission status: Accepted

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

Submission status: Accepted

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

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

print(weatherList[s])

Submission status: Accepted

Solution code:
#A
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:
l = ["Sunny", "Cloudy", "Rainy", "Sunny"]
s = input()
print(l[l.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 == "Rainy":
  print("Sunny")
else:
  print("Rainy")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
#wether_list = ['Sunny', 'Cloudy', 'Rany']

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()


dic = {0:"Sunny",1:"Cloudy",2:"Rainy"}

for a,b in dic.items():
    if b==S:
        index = a


next_ = (index+1)%3
print(dic[next_])

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
l = ['Sunny','Cloudy','Rainy']
S = input()
p = l.index(S)
if p==0 or p==1:
  print(l[p+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:
#<ABC.141>
#<A>
s = input()
weather = ["Sunny", "Cloudy", "Rainy"]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = [input()]

if S[0] == 'Sunny' :
    print("Cloudy")

elif S[0] == 'Cloudy' :
    print("Rainy")

elif S[0] == 'Rainy' :
    print("Sunny")

Submission status: Accepted

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

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 = str(input())
l= ['Sunny','Cloudy','Rainy']

for i in range(2):
    if S == l[2]:
        print('Sunny')
        exit()
    elif S == l[i]:
        print(l[i+1])
        exit()

Submission status: Accepted

Solution code:
n = input()
my_list = ["Sunny", "Cloudy", "Rainy", "Sunny"]
a = ""
for i in range(0, len(my_list)):
    if n==my_list[i]:
        a += my_list[i+1]
        break
print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(dict[s])

Submission status: Accepted

Solution code:
"""
    こんにちは。これはクシャルです
    
    Author : thekushalghosh (クシャル)
    Team   : CodeDiggers
 
    I prefer Python language over the C++ language :p :D
        
    Visit my website : thekushalghosh.github.io
"""
import sys,math,cmath,time
start_time = time.time()
##########################################################################
################# ---- THE ACTUAL CODE STARTS BELOW ---- #################

def solve():
    s = insr()
    if s == "Sunny":
        q = "Cloudy"
    elif s == "Cloudy":
        q = "Rainy"
    else:
        q = "Sunny"
    print(q)
    
################## ---- THE ACTUAL CODE ENDS ABOVE ---- ##################
##########################################################################
 
def main():
    global tt
    if not ONLINE_JUDGE:
        sys.stdin = open("input.txt","r")
        sys.stdout = open("output.txt","w")
    t = 1
    for tt in range(t):
        solve()
    if not ONLINE_JUDGE:
        print("Time Elapsed :",time.time() - start_time,"seconds")
        sys.stdout.close()
    
#---------------------- USER DEFINED INPUT FUNCTIONS ----------------------#
def inp():
    return(int(input()))
def inlt():
    return(list(map(int,input().split())))
def insr():
    return(input().strip())
def invr():
    return(map(int,input().split()))
 
#------------------ USER DEFINED PROGRAMMING FUNCTIONS ------------------#
def counter(a):
    q = [0] * max(a)
    for i in range(len(a)):
        q[a[i] - 1] = q[a[i] - 1],1
    return(q)
 
def string_counter(a):
    q = [0] * 26
    for i in range(len(a)):
        q[ord(a[i]) - 97] = q[ord(a[i]) - 97],1
    return(q)

def factors(n):
    q = []
    for i in range(1,int(n ** 0.5) + 1):
        if n % i == 0: q.append(i); q.append(n // i)
    return(list(sorted(list(set(q)))))

def prime_factors(n):
    q = []
    while n % 2 == 0: q.append(2); n = n // 2
    for i in range(3,int(n ** 0.5) + 1,2):
        while n % i == 0: q.append(i); n = n // i
    if n > 2: q.append(n)
    return(list(sorted(q)))

#-----------------------------------------------------------------------#
        
ONLINE_JUDGE = __debug__
if ONLINE_JUDGE:
    input = sys.stdin.readline
    
    
    
main()

Submission status: Accepted

Solution code:
import sys


# input = sys.stdin.readline

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



if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

num=(wether.index(s)+1)%3

print(wether[num])

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
w = ['Sunny', 'Cloudy', 'Rainy']
print(w[(w.index(input())+1)%3])

Submission status: Accepted

Solution code:
t=input()
if t == "Sunny":
    print("Cloudy")
elif t == "Cloudy":
    print("Rainy")
elif t == "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()
if S == 'Sunny':print('Cloudy')
if S == 'Cloudy':print('Rainy')
if S == 'Rainy':print('Sunny')

Submission status: Accepted

Solution code:
print('CRSlauoinunndyyy'[ord(input()[0])%7%3::3])

Submission status: Accepted

Solution code:
l=' RainyCloudySunny';print(l[l.find(input())-6:][:6])

Submission status: Accepted

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

s = str(input())

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

print(dic[s])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

S = input()

print(A[(A.index(S)+1)%3])

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()

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

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

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()
    A = ['Sunny', 'Cloudy', 'Rainy']

    print(A[(A.index(S) + 1) % 3])
    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
def main():
    s = input()
    if s == 'Sunny':
        print('Cloudy')
    elif s == 'Cloudy':
        print('Rainy')
    elif s == 'Rainy':
        print('Sunny')
        
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
clima= input()
if clima=='Sunny':
    print('Cloudy')
elif clima=='Cloudy':
    print('Rainy')
elif clima== '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")
elif S=="Cloudy":
  print("Rainy")
else:
  print("Sunny")

Submission status: Accepted

Solution code:
def main():
    s = str(input())
    l = ['Sunny', 'Cloudy', 'Rainy']
    if s == 'Rainy':
        print(l[0])
    else:
        print(l[l.index(s) + 1])
main()

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

Solution code:
tod=input()
list=["Sunny", "Cloudy", "Rainy"]
count=0
for i in list:
  if count==2:
      print(list[0])
      break
  if list[count]==tod:
    print(list[count+1])
    break
  count+=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:
# A - Weather Prediction
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:
d = {"Sunny": "Cloudy", "Cloudy": "Rainy", "Rainy": "Sunny"}

a = input()

print(d[a])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 141 A

prompt = input()
l = ["Sunny", "Cloudy", "Rainy"]

for i in range(3):
    if prompt == l[i]:
        try:
            print(l[i+1])
        except:
            print(l[(i+1)-len(l)])

Submission status: Accepted

Solution code:
li = ["Sunny", "Cloudy", "Rainy"]
we = li.index(input())
print(li[we + 1] if we != 2 else "Sunny")

Submission status: Accepted

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

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