#abc287a. [abc287_a]Majority
[abc287_a]Majority
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.
Sample Input 1
3
For
Against
For
Sample Output 1
Yes
The proposal is supported by two people, which is the majority, so Yes
should be printed.
Sample Input 2
5
Against
Against
For
Against
For
Sample Output 2
No
The proposal is supported by two people, which is not the majority, so No
should be printed.
Sample Input 3
1
For
Sample Output 3
Yes