Weather Forecast

AtCoder
IDabc218_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$, which represents a weather forecast for the seven days starting tomorrow. The $i$\-th of those seven days is forecast to be sunny if the $i$\-th character of $S$ is `o`, and rainy if that character is `x`. Tell us whether the $N$\-th day is forecast to be sunny. ## Constraints * $N$ is an integer between $1$ and $7$ (inclusive). * $S$ is a string of length $7$ consisting of `o` and `x`. ## Input Input is given from Standard Input in the following format: $N$ $S$ [samples]
Samples
Input #1
4
oooxoox
Output #1
No

The forecast for each of the seven days starting tomorrow is as follows: sunny, sunny, sunny, rainy, sunny, sunny, rainy.  
In particular, the fourth day is forecast to be rainy.
Input #2
7
ooooooo
Output #2
Yes
API Response (JSON)
{
  "problem": {
    "name": "Weather Forecast",
    "description": {
      "content": "You are given a string $S$, which represents a weather forecast for the seven days starting tomorrow.   The $i$\\-th of those seven days is forecast to be sunny if the $i$\\-th character of $S$ is `o`, ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc218_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$, which represents a weather forecast for the seven days starting tomorrow.  \nThe $i$\\-th of those seven days is forecast to be sunny if the $i$\\-th character of $S$ is `o`, ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments