/
実行時間制限: 2 sec / メモリ制限: 1024 MiB
配点 : 100 点
問題文
N 個の座席が横一列に並んでいます。各座席には最大で 1 人まで座ることができます。以下の条件を満たすように M 人の人を座席に座らせることができるかどうか判定してください。
隣り合う 2 つの席の両方に人が座ってはいけない。
制約
- 1 \le N, M \le 100
- 入力される値は全て整数
入力
入力は以下の形式で標準入力から与えられる。
N M
出力
条件を満たすように座席に座らせることが可能ならば Yes を、不可能ならば No を出力せよ。
入力例 1
6 3
出力例 1
Yes
例えば、左から 1, 3, 6 番目に座らせれば可能です。したがって Yes を出力してください。
入力例 2
4 3
出力例 2
No
条件を満たすような座らせ方はありません。したがって No を出力してください。
入力例 3
5 3
出力例 3
Yes
入力例 4
44 7
出力例 4
Yes
Score : 100 points
Problem Statement
There are N seats arranged in a row. Each seat can accommodate at most one person. Determine whether it is possible to seat M people in the seats satisfying the following condition.
No two adjacent seats may both be occupied.
Constraints
- 1 \le N, M \le 100
- All input values are integers.
Input
The input is given from Standard Input in the following format:
N M
Output
Output Yes if it is possible to seat the people satisfying the condition, and No otherwise.
Sample Input 1
6 3
Sample Output 1
Yes
For example, seating people in the first, third, and sixth seats from the left is one valid way. Thus, output Yes.
Sample Input 2
4 3
Sample Output 2
No
There is no valid way to seat the people satisfying the condition. Thus, output No.
Sample Input 3
5 3
Sample Output 3
Yes
Sample Input 4
44 7
Sample Output 4
Yes