

実行時間制限: 2 sec / メモリ制限: 1024 MiB
配点 : 100 点
問題文
AtCoder 市では市長選挙が行われています。候補者は高橋氏と青木氏です。
2 人のどちらかに投じられた有効票は N 票あり、現在開票が行われています。なお、 N は奇数です。
現在の開票作業の途中経過は高橋氏に T 票、青木氏に A 票です。
現時点で勝敗が確定しているかを判定してください。
制約
- 1 \leq N \leq 99
- N は奇数
- 0 \leq T,A \leq N
- T+A \leq N
- 入力はすべて整数
入力
入力は以下の形式で標準入力から与えられる。
N T A
出力
現時点で勝敗が確定しているならば Yes
、そうでなければ No
と出力せよ。
入力例 1
7 4 2
出力例 1
Yes
残りの 1 票が青木氏に入っても、高橋氏は勝利します。高橋氏の勝利が確定しているため、Yes
と出力します。
入力例 2
99 12 48
出力例 2
No
現時点では青木氏が多く票を獲得していますが、高橋氏が残りの 39 票を獲得すると高橋氏が勝利します。よって、No
と出力します。
入力例 3
1 0 0
出力例 3
No
Score : 100 points
Problem Statement
A mayoral election is being held in AtCoder City. The candidates are Takahashi and Aoki.
There are N valid votes cast for either of the two candidates, and the counting is currently underway. Here, N is an odd number.
The current vote count is T votes for Takahashi and A votes for Aoki.
Determine if the outcome of the election is already decided at this point.
Constraints
- 1 \leq N \leq 99
- N is an odd number.
- 0 \leq T, A \leq N
- T + A \leq N
- All input values are integers.
Input
The input is given from standard input in the following format:
N T A
Output
Print Yes
if the outcome of the election is already decided, and No
otherwise.
Sample Input 1
7 4 2
Sample Output 1
Yes
Even if the remaining one vote goes to Aoki, Takahashi will still win. That is, his victory is decided, so print Yes
.
Sample Input 2
99 12 48
Sample Output 2
No
Although Aoki currently has more votes, Takahashi would win if he receives the remaining 39 votes. Therefore, print No
.
Sample Input 3
1 0 0
Sample Output 3
No