100 atcoder#ABC218A. [ABC218A] Weather Forecast
[ABC218A] Weather Forecast
Score : points
Problem Statement
You are given a string , which represents a weather forecast for the seven days starting tomorrow.
The -th of those seven days is forecast to be sunny if the -th character of is o
, and rainy if that character is x
.
Tell us whether the -th day is forecast to be sunny.
Constraints
- is an integer between and (inclusive).
- is a string of length consisting of
o
andx
.
Input
Input is given from Standard Input in the following format:
Output
Print Yes
if the -th of the seven days starting tomorrow is forecast to be sunny, and No
if that day is forecast to be rainy.
4
oooxoox
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.
7
ooooooo
Yes