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: Runtime Error

Solution code:
package main

import (
	"bufio"
	"fmt"
	"io"
	"math"
	"os"
	"strconv"
	"strings"

)


func main() {
	solve(os.Stdin, os.Stdout)
}

type ReaderEx struct {
	baseScanner *bufio.Scanner
	words       []string
	nextWordIdx func() int
	initWordIdx func(int)
}

func NewScannerEx(stdin io.Reader) *ReaderEx {
	var this ReaderEx
	var idx int
	var wordsCnt int
	this.baseScanner = bufio.NewScanner(stdin)
	this.baseScanner.Buffer(make([]byte, 0), 1E+11)
	this.nextWordIdx = func() int {
		cur := idx
		idx = (idx + 1) % wordsCnt
		return cur
	}
	this.initWordIdx = func(wc int) {
		idx = 0
		wordsCnt = wc
	}
	return &this
}

func (me *ReaderEx) Scan(doSplit bool) (isScanned bool) {
	isScanned = me.baseScanner.Scan()
	if doSplit {
		me.words = strings.Fields(me.baseScanner.Text())
	} else {
		me.words = []string{me.baseScanner.Text()}
	}
	me.initWordIdx(len(me.words))
	return
}

func (me *ReaderEx) nextBytes() []byte {
	return []byte(me.words[me.nextWordIdx()])
}
func (me *ReaderEx) nextString() string {
	return me.words[me.nextWordIdx()]
}

type StringArray []string

func (me *ReaderEx) nextStringArray() StringArray {
	return me.words[me.nextWordIdx():]
}

func (me StringArray) toStrings() []string {
	return me
}

func (me StringArray) toInts() []int {
	strValues := me.toStrings()
	values := make([]int, len(strValues))
	for i, v := range strValues {
		n, err := strconv.Atoi(v)
		if err != nil {
			panic(err)
		}
		values[i] = n
	}
	return values
}
func (me *ReaderEx) nextInt() int {
	n, err := strconv.Atoi(me.words[me.nextWordIdx()])

	defer func() {
		if err != nil {
			panic(fmt.Sprintf("getInt(%d)", n))
		}
	}()
	return n
}

func pow(x, y, mod int) (ans int) {

	ans = 1
	for bit := 1 << uint(math.Floor(math.Log2(float64(y)))); ; bit >>= 1 {
		if y&bit != 0 {
			ans *= x
			if mod > 0 {
				ans %= mod
			}
		}
		if bit <= 1 {
			return
		}
		ans *= ans
		if mod > 0 {
			ans %= mod
		}
	}
}

type factType struct {
	prime int
	count int
}

func fact(n int) (facts []*factType) {

	for i := 2; i*i <= n; i++ {
		if n%i == 0 {
			fa := factType{prime: i}
			for n%fa.prime == 0 {
				n /= fa.prime
				fa.count++
			}
			facts = append(facts, &fa)
		}
	}
	if n > 1 {
		facts = append(facts, &factType{prime: n, count: 1})
	}
	return facts
}
func dec2bin(n int) (ret []bool) {
	for bit := 1 << uint(math.Floor(math.Log2(float64(n)))); ; bit >>= 1 {
		ret = append(ret, n&bit != 0)

		if bit <= 1 {
			return
		}
	}

}

func abs(v int) int {
	if v < 0 {
		v = -v
	}
	return v
}

func b2i(b bool) (i int) {
	if b {
		i = 1
	} else {
		i = 0
	}
	return
}

func solve(stdin io.Reader, stdout io.Writer) {

	r := NewScannerEx(stdin)
	r.Scan(true)
	s := r.nextString()
	a := map[string]string{}
	a["Sunny"] = "Cloudy"
	a["Cloudy"] = "Rainy"
	a["Rainy"] = "Sunny"
	fmt.Fprintln(stdout, a[s])
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S=input()

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

Submission status: Runtime Error

Solution code:
import sys
def main():
    input = sys.stdin.readline
    S = input()
    if S == "Sunny":
        ans = "Cloudy"
    elif S == "Cloudy":
        ans = "Rainy"
    elif S == "Rainy":
        ans = "Sunny"

    print(ans)
if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
s=input()

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>

int main()
{
    string s;
    cin >> s;
    if (string == "Sunny") printf("Cloudy\n");
    if (string == "Cloudy") printf("Rainy\n");
    if (string == "Rainy") printf("Sunny\n");
    return 0;
}

Submission status: Runtime Error

Solution code:
A = input()

if A == "Sunny":
    print("Cloudy")
else A == "Cloudy":
    print("Rainy")
else:
    print("Sunny")

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

#define rep(i, n) for (int i = (int)(0); i < (int)(n); ++i)
#define reps(i, n) for (int i = (int)(1); i <= (int)(n); ++i)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define rreps(i, n) for (int i = ((int)(n)); i > 0; i--)
#define irep(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
#define ireps(i, m, n) for (int i = (int)(m); i <= (int)(n); ++i)
#define FOR(e, c) for (auto &e : c)
#define SORT(v, n) sort(v, v + n);
#define vsort(v) sort(v.begin(), v.end());
#define rvisort(v) sort(v.begin(), v.end(), greater<int>());
#define all(v) v.begin(), v.end()
#define mp(n, m) make_pair(n, m);
#define cout(d) cout<<d<<endl;
#define coutd(d) cout<<std::setprecision(10)<<d<<endl;
#define cinline(n) getline(cin,n);
#define replace_all(s, b, a) replace(s.begin(),s.end(), b, a);

using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using pii = pair<int, int>;
using ul = unsigned long;

const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int main(){
  string s;cin>>s;
  if(s=="Sunny") cout("Cloudy");
  if(s=="Cloudy")cout("Rainy");
  if(s=="Rainy") cout("Sunny");
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vb=vector<bool>;
using vvb=vector<vb>;
using vd=vector<double>;
using vvd=vector<vd>;
using vi=vector<int>;
using vvi=vector<vi>;
using vl=vector<ll>;
using vvl=vector<vl>;
using pii=pair<int,int>;
using pll=pair<ll,ll>;
using tll=tuple<ll,ll>;
using tlll=tuple<ll,ll,ll>;
using vs=vector<string>;

#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define rep(i,n) range(i,0,n)
#define rrep(i,n) for(int i=(n)-1;i>=0;i--)
#define range(i,a,n) for(int i=(a);i<(n);i++)

#define LINF ((ll)1ll<<60)
#define INF ((int)1<<30)
#define EPS (1e-9)
#define MOD (1000000007ll)
#define fcout(a) cout<<setprecision(a)<<fixed
#define fs first
#define sc second
#define PI 3.1415926535897932384

int dx[]={1,0,-1,0,1,-1,-1,1},dy[]={0,1,0,-1,1,1,-1,-1};

template<class T>bool chmax(T&a,T b){if(a<b){a=b; return true;}return false;}
template<class T>bool chmin(T&a,T b){if(a>b){a=b; return true;}return false;}
template<class S>S acm(vector<S>&a){return accumulate(all(a),S());}
template<class S>S max(vector<S>&a){return *max_element(all(a));}
template<class S>S min(vector<S>&a){return *min_element(all(a));}
void YN(bool b){cout<<(b?"YES":"NO")<<"\n";}
void Yn(bool b){cout<<(b?"Yes":"No")<<"\n";}
void yn(bool b){cout<<(b?"yes":"no")<<"\n";}

ll max(int a,ll b){return max((ll)a,b);} ll max(ll a,int b){return max(a,(ll)b);}
template<class T>void puta(T&&t){cout<<t<<"\n";}
template<class H,class...T>void puta(H&&h,T&&...t){cout<<h<<' ';puta(t...);}
template<class S,class T>ostream&operator<<(ostream&os,pair<S,T>p){os<<"["<<p.first<<", "<<p.second<<"]";return os;};
template<class S>auto&operator<<(ostream&os,vector<S>t){bool a=1; for(auto s:t){os<<(a?"":" ")<<s;a=0;} return os;}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	string s,ans;
	sin>>s;
	if(s=="Sunny")ans="Cloudy";
	else if(s=="Cloudy")ans="Rainy";
	else if(s=="Rainy")ans="Sunny";
	cout<<ans<<endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repr(i, n) for(int i = (int)(n); i >= 0; i--)
#define repm(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
#define repmr(i, m, n) for(int i = (int)(n); i >= (int)(m); i--)
#define all(x) (x).begin(),(x).end()
#define inf 2e9
#define MOD 1000000007

using namespace std;
typedef long long int lli;
typedef long long ll;

vector<int> dy = {1,-1,0,0};
vector<int> dx = {0,0,1,-1};

namespace detail {
  template <typename Tp, int N>
  vector<Tp> make_vector(vector<int>& sizes, typename enable_if<(N == 1), Tp const&>::type x){
    return vector<Tp>(sizes[0], x);
  }
  template <typename Tp, int N>
  auto make_vector(vector<int>& sizes, typename enable_if<(N > 1), Tp const&>::type x){
    int size = sizes[N-1];
    sizes.pop_back();
    return vector<decltype(make_vector<Tp, N-1>(sizes, x))>(size, make_vector<Tp, N-1>(sizes, x));
  }
}
template <typename Tp, int N>
auto make_vector(int const(&sizes)[N], Tp const& x) {
  vector<int> s(N);
  for (int i = 0; i < N; ++i) s[i] = sizes[N-i-1];
  return detail::make_vector<Tp, N>(s, x);
}

int main(){
  string s; cin >> s;

  if(s == "Sunny") s = "Cloudy";
  else if(s == "Cloudy") s = "Rainy";
  else s = "Sunny";

  cout << s << endl;
}

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
 
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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# coding=utf-8

if __name__ == "__main__:
    S = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
import math
import re

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

print a[input()]

Submission status: Runtime Error

Solution code:
L()=lambda:list(map(int,input().split()))
I()=lambda:input()
s=I()
d=["Sunny","Cloudy","Rainy","Sunny"]
print(d[d.index(s)+1])

Submission status: Runtime Error

Solution code:
tmp = ["Sunny", "Cloudy", "Rainy"]
today = input()

print(tmp[tmp.index(today)%3 + 1])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
print(n)

Submission status: Runtime Error

Solution code:
L()=lambda:list(map(int,input().split()))
I()=lambda:input()
s=int(I())
d=["Sunny","Cloudy","Rainy","Sunny"]
print(d[d.index(s)+1])