atcoder#ABC287A. [ABC287A] Majority
[ABC287A] Majority
Score : points
Problem Statement
There are people. Each of them agrees or disagrees with a proposal. Here, is an odd number.
The -th person's opinion is represented by a string : the person agrees if For
and disagrees if Against
.
Determine whether the majority agrees with the proposal.
Constraints
- is an odd number between and , inclusive.
-
For
orAgainst
, for all .
Input
The input is given from Standard Input in the following format:
Output
Print Yes
if the majority of the people agree with the proposal; print No
otherwise.
3
For
Against
For
Yes
The proposal is supported by two people, which is the majority, so Yes
should be printed.
5
Against
Against
For
Against
For
No
The proposal is supported by two people, which is not the majority, so No
should be printed.
1
For
Yes