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

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

print(x)

Submission status: Accepted

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

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

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

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

print(tw[s])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

dic = {'Sunny': 'Cloudy',
       'Cloudy': 'Rainy',
       'Rainy':  'Sunny'}
print(dic[s])

Submission status: Accepted

Solution code:
s = input()

dic = {'Sunny': 'Cloudy',
       'Cloudy': 'Rainy',
       'Rainy':  'Sunny'}
print(dic[s])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

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

if s == 'Sunny':
    print(df[1])
elif s == 'Cloudy':
    print(df[2])
else:
    print(df[0])

Submission status: Accepted

Solution code:

S=input()
j=0
ref=["Sunny","Cloudy","Rainy"]
for i in range(3):
  if S==ref[i]:
    j=i+1
if j==3:
  j=0
print(ref[j])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
weather = ["Sunny", "Cloudy", "Rainy"]
s = input()
for i in range(3):
    if s == weather[i]:
        print(weather[(i + 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:
import numpy as np

# 乱数シードを指定
np.random.seed(seed=0)

X_train = np.array([0, 1, 2])
T_train = np.array([1, 2, 0])

X_test = np.array([1, 2, 0])
T_test = np.array([2, 0, 1])

# one-hot-vectorに変換
X_train = np.eye(3)[X_train.astype("int")]
X_test = np.eye(3)[X_test.astype("int")]
T_train = np.eye(3)[T_train.astype("int")]
T_test = np.eye(3)[T_test.astype("int")]


def softmax(x):
    x = x.T
    _x = x - np.max(x)
    _x = np.exp(_x) / np.sum(np.exp(_x), axis=0)
    return _x.T
  
  
def cross_entropy_error(t, y):
    delta = 1e-8
    error = -np.mean(t * np.log(y + delta)) 
    return error
  

class SoftmaxCrossEntropyLoss():
    def __init__(self):
        self.y = None
        self.t = None
        self.loss = None
        
    def __call__(self, t, y):
        self.y = softmax(y)
        self.t = t.copy()
        self.loss = cross_entropy_error(self.t, self.y)
        return self.loss
    
    def backward(self):
        batch_size = self.t.shape[0]
        dy = self.y - self.t 
        dy /= batch_size
        return dy
      
      
class FullyConnectedLayer():
    def __init__(self, input_shape, output_shape):
        self.w = np.random.randn(input_shape, output_shape) * 0.01
        self.b = np.zeros(output_shape, dtype=np.float)
        self.x = None
        self.dw = None
        self.db = None
        
    def __call__(self, x):
        self.x = x
        out = np.dot(self.x, self.w) + self.b
        return out
    
    def backward(self, dout):
        dx = np.dot(dout, self.w.T) 
        batch_size = dx.shape[0]
        self.dw = np.dot(self.x.T, dout) 
        self.db = np.sum(dout, axis=0)
        return dx
      
      
class ReLU():
    def __init__(self):
        self.mask = None

    def __call__(self, x):
        self.mask = (x <= 0)
        out = x.copy()
        out[self.mask] = 0
        return out

    def backward(self, dout):
        dout[self.mask] = 0
        dx = dout

        return dx
      
      

# 分類モデル
class MLP_classifier():

    def __init__(self):
        '''
        構造
        x -> fc(783, 256) -> relu -> fc(256, 256) -> relu -> fc(256, 10) -> out
        '''
        
        # 層の定義
        self.fc1 = FullyConnectedLayer(3, 20)
        self.relu1 = ReLU()
        self.fc2 = FullyConnectedLayer(20, 20)
        self.relu2 = ReLU()
        self.fc3 = FullyConnectedLayer(20, 3)
        self.out = None
        
        # 損失関数の定義
        self.criterion = SoftmaxCrossEntropyLoss()

    def forward(self, x):
        '''
        順伝播
        '''
        
        x = self.relu1(self.fc1(x))
        x = self.relu2(self.fc2(x))
        self.out = self.fc3(x)
        
        # 勾配計算の都合上softmaxはこの順伝播関数内では行わない
        # 予測するときはさらにsoftmaxを通す必要がある
        return self.out

    def backward(self, t):
        '''
        逆伝播
        '''
        
        # 誤差を計算
        loss = self.criterion(t, self.out)
        # 勾配を逆伝播
        d = self.criterion.backward()
        d = self.fc3.backward(d)
        d = self.relu2.backward(d)
        d = self.fc2.backward(d)
        d = self.relu1.backward(d)
        d = self.fc1.backward(d)
        
        return loss

    def optimize_GradientDecent(self, lr):
        '''
        勾配降下法による全層のパラメータの更新
        '''
        for fc in [self.fc1, self.fc2, self.fc3]:
            fc.w -= lr * fc.dw
            fc.b -= lr * fc.db
              

# モデルの宣言
model = MLP_classifier()

# 学習率
lr = 0.005
# 学習エポック数
n_epoch = 2000

# n_epoch繰り返す
for n in range(n_epoch):
    # 訓練
    # Day1範囲外のため、ミニバッチは使用しない
    y = model.forward(X_train)
    loss = model.backward(T_train)
    model.optimize_GradientDecent(lr)
    
    # テスト
    y = model.forward(X_test)
    test_loss = model.backward(T_test)
    pred = softmax(y)
    accuracy = np.mean(np.equal(np.argmax(y, axis=1), np.argmax(T_test, axis=1)))
    #print(f'EPOCH {n + 1} | TRAIN LOSS {loss:.5f} | TEST LOSS {test_loss:.5f} | ACCURACY {accuracy:.2%}')
    #print("EPOCH", n + 1, "|", "TRAIN LOSS", loss, "|", "TEST LOSS", test_loss, "|", "ACCURACY", accuracy)
    classification_accuracy = accuracy

str = input()
y1 = [1, 0][str=="Sunny"]
y1 = [y1, 2][str=="Rainy"]

y1 = np.array([y1])
y1 = model.forward(np.eye(3)[y1.astype("int")])
print(["Sunny", "Cloudy", "Rainy"][np.argmax(y1, axis=1)[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()
weather = ['Sunny', 'Cloudy', 'Rainy', 'Sunny'] 
class Weather_Prediction:
#  def __init__(self):

  def solve(self, s):
    self.s = s
    ind = weather.index(s) +1
    ans_index = weather[ind]
    return ans_index
  
solver =   Weather_Prediction()
anser = solver.solve(s)
print(anser)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

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

for i in range(len(arr)):
	if s == arr[i] and i != 2:
		print(arr[i+1])
		break
	elif s == arr[i] and i == 2:
		print(arr[0])

Submission status: Accepted

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

Submission status: Accepted

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

# リストのおさらい
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

p=input().rstrip()

weather=["Sunny","Cloudy","Rainy"]
for i in range(3):
    if p==weather[i]:
        #print(i)
        print(weather[(i+1)%3])
    #print(i)
    #print(weather[(i+1)%3])
#print(p)

Submission status: Accepted

Solution code:
weather =input()
if "Sunny"in weather :
    print("Cloudy")
elif "Cloudy" in weather :
    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:
import sys
input = sys.stdin.readline

_s = input()[:-1]


def chker(s):
    d = {
        'Sunny': 'Cloudy',
        'Cloudy': 'Rainy',
        'Rainy': 'Sunny'
    }

    print(d[s])


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

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

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

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

Submission status: Accepted

Solution code:
S = str(input())
if S[-3:] == "nny":
    print("Cloudy")
elif S[-2:] == "dy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
import numpy

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

Submission status: Accepted

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

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

Submission status: Accepted

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

weather_change = {x: y for x, y in zip(w, w[1:])}

S = input()

print(weather_change[S])

Submission status: Accepted

Solution code:
def change_weather(weather):
    if weather == 'Sunny':
        return 'Cloudy'

    if weather == 'Rainy':
        return 'Sunny'

    if weather == 'Cloudy':
        return 'Rainy'


print(change_weather(input()))

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:
##A
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
I = input()
S = "Sunny"
C = "Cloudy"
R = "Rainy"

if I == S :
    print(C)
elif I == C :
    print(R)
elif I == R :
    print(S)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


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


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


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


def main():
    S = input()
    solve(S)


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:
a = ["Sunny", "Cloudy", "Rainy"]
d = {a[i]:a[(i+1)%3] for i in range(3)}
x = raw_input().rstrip()
print d[x]

Submission status: Accepted

Solution code:
# 2019-11-18 17:34:23(JST)
import sys
# import collections
# import math
# from string import ascii_lowercase, ascii_uppercase, digits
# from bisect import bisect_left as bi_l, bisect_right as bi_r
# import itertools
# from functools import reduce
# import operator as op
# import re
# import heapq
# import array
# from scipy.misc import comb # (default: exact=False)
# import numpy as np 

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

def main():
    today = sys.stdin.readline().rstrip()
    
    tomorrow = weather[(weather.index(today)+1)%mod]
    print(tomorrow)
        
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

Solution code:
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:
S = list(input())
if S[0] == 'S':
    print('Cloudy')
elif S[0] == 'C':
    print('Rainy')
elif S[0] == 'R':
    print('Sunny')

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = raw_input()
arr=["Sunny","Cloudy","Rainy"]
n=arr.index(s)
print arr[(n+1)%len(arr)]

Submission status: Accepted

Solution code:
s = raw_input()
arr = ["Sunny", "Cloudy", "Rainy"]
n = arr.index(s)
print arr[(n+1)%len(arr)]

Submission status: Accepted

Solution code:
# coding:utf-8

s = raw_input()  # 获取输入数据字符串S

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if S == str("Sunny"):
    print("Cloudy")
elif S == str("Cloudy"):
    print("Rainy")
elif S == str("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 = 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()
c=['Sunny','Cloudy','Rainy','Sunny']
for i,n in enumerate(c[:3]):
    if S==n:
        print(c[i+1])
        break

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

Submission status: Accepted

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

s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

Solution code:
S =list(input())

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

Submission status: Accepted

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


def main():
    sc = Scan()
    s = sc.strarr()[0]

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


class Scan():

    def intarr(self):
        line = input()
        array = line.split(' ')
        num_array = [int(n) for n in array]
        return num_array

    def strarr(self):
        line = input()
        array = line.split(' ')
        array[-1] = array[-1].strip('\n')
        return array


main()

Submission status: Accepted

Solution code:
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

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

Submission status: Accepted

Solution code:
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

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

print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s = input()

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

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

Submission status: Accepted

Solution code:
Weather = input()

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = input()
if A[0]=='S':
    print('Cloudy')
elif A[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:
S = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

i = WS.index(S)
i += 1
if i == 3:
    i = 0

print(WS[i])

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

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

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

Submission status: Accepted

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

s = input()

idx = weather.index(s)

print(weather[(idx %3) - 2])

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:
today = str(input())
S = ['Sunny', 'Cloudy', 'Rainy']
if today == 'Sunny':
  print('Cloudy')
elif today =='Cloudy':
  print('Rainy')
elif today =='Rainy':
  print('Sunny')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
def print_ans(input_line):
    """Test Case
    >>> print_ans("Sunny")
    Cloudy
    >>> print_ans("Rainy")
    Sunny
    """
    if input_line == "Sunny":
        print("Cloudy")
    elif input_line == "Rainy":
        print("Sunny")
    else:
        print("Rainy")


if __name__ == '__main__':
    input_line = input().rstrip()
    print_ans(input_line)

Submission status: Accepted

Solution code:

def print_ans(input_line):
    """Test Case
    >>> print_ans("Sunny")
    Cloudy
    >>> print_ans("Rainy")
    Sunny
    """
    if input_line == "Sunny":
        print("Cloudy")
    elif input_line == "Rainy":
        print("Sunny")
    else:
        print("Rainy")


if __name__ == '__main__':
    print_ans(input())

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

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

Submission status: Accepted

Solution code:
import sys


def solve():
    input = sys.stdin.readline
    mod = 10 ** 9 + 7
    s = str(input().rstrip('\n'))
    if s == "Sunny":
        print("Cloudy")
    elif s == "Cloudy":
        print("Rainy")
    elif s == "Rainy":
        print("Sunny")


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC 141: A – Weather Prediction
s = input()
weather = ['Sunny', 'Cloudy', 'Rainy']
print(weather[(weather.index(s) + 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:
#Weather Prediction
S = input()
if S == "Sunny":
    print("Cloudy")
elif S == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Accepted

Solution code:
s = input()

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

print(res)

Submission status: Accepted

Solution code:
import sys


def LI(): return [int(x) for x in sys.stdin.readline().split()]


def I(): return int(sys.stdin.readline())


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


# B
def B():
    return


# C
def C():
    return


# D
def D():
    return


# E
def E():
    return


# F
def F():
    return


# Unittest
def resolve():
    A()
    return


# Solve
if __name__ == "__main__":
    A()