w = eval(input())



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



idx = weather.index(w) + 1

if idx > 2:

  idx = 0

print((weather[idx]))
w = eval(input())



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



idx = weather.index(w) - 2

print((weather[idx]))
w = eval(input())
weather = ["Sunny", "Cloudy", "Rainy"]
idx = weather.index(w) + 1
if idx > 2:
    idx = 0
print((weather[idx]))

w = eval(input())
weather = ["Sunny", "Cloudy", "Rainy"]
idx = weather.index(w) - 2
print((weather[idx]))

-idx = weather.index(w) + 1 -if idx > 2: -    idx = 0 +idx = weather.index(w) - 2