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

Solution in Java8 (OpenJDK 1.8.0) (judge verdict: Wrong Answer)

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		char [] a = sc.next().toCharArray();
		int b = 0;
		int c = 0;
		
		for(int i = 0; i <= a.length; i+=2) {
			if(a[i]=='R' || a[i]=='U' || a[i]=='D') {//奇数の条件
				b++;
			}else {
				b=0;
				break;
			}
		}
		
		for(int j = 1; j <=a.length; j+=2) {
			if(a[j]=='L' || a[j]=='U' || a[j]=='D') {//偶数の条件
				c++;
			}else {
				c=0;
				break;
			}
		}

		if(b ==0 || c == 0) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}




	}

}