Weather Prediction

AtCoder
IDabc141_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
Sunny
Output #1
Cloudy

In Takahashi's town, a sunny day is followed by a cloudy day.
Input #2
Rainy
Output #2
Sunny
API Response (JSON)
{
  "problem": {
    "name": "Weather Prediction",
    "description": {
      "content": "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 th",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc141_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "The weather in Takahashi's town changes day by day, in the following cycle: Sunny, Cloudy, Rainy, Sunny, Cloudy, Rainy, ...\nGiven is a string $S$ representing the weather in the town today. Predict th...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments