#AT2541. A - Job Interview
A - Job Interview
当前没有测试数据。
A - Job Interview
Score : $100$ points
Problem Statement
Takahashi had a job interview.
You are given the number of interviewers, $N$, and a string $S$ of length $N$ representing the interviewers' evaluations of him.
For each $i=1,2,\ldots,N$, the $i$-th character of $S$ corresponds to the $i$-th interviewer's evaluation; o
means Good, -
means Fair, and x
means Poor.
Takahashi will pass if both of the following conditions are satisfied, and fail otherwise.
- At least one interviewer's evaluation is Good.
- No interviewer's evaluation is Poor.
Determine whether Takahashi passes.
Constraints
- $1 \leq N \leq 100$
- $S$ is a string of length $N$ consisting of
o
,-
, andx
.
Input
The input is given from Standard Input in the following format:
Output
If Takahashi passes, print Yes
; otherwise, print No
.
4
oo--
Yes
The first and second interviewers' evaluations are Good, and no interviewer's evaluation is Poor, so he passes.
3
---
No
No interviewer's evaluation is Good, so he fails.
1
o
Yes
100
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooox
No
The $100$-th interviewer's evaluation is Poor, so he fails.