Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
1 以上 3 以下の整数 A, B が与えられます。
A \times B \times C が奇数となるような 1 以上 3 以下の整数 C が存在するか判定してください。
制約
- 入力はすべて整数である
- 1 \leq A, B \leq 3
入力
入力は以下の形式で標準入力から与えられる。
A B
出力
条件を満たすような C が存在するなら Yes
、そうでないなら No
を出力せよ。
入力例 1
3 1
出力例 1
Yes
C = 3 とすると A \times B \times C = 3 \times 1 \times 3 = 9 となり、奇数となります。
入力例 2
1 2
出力例 2
No
入力例 3
2 2
出力例 3
No
Score : 100 points
Problem Statement
You are given integers A and B, each between 1 and 3 (inclusive).
Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.
Constraints
- All values in input are integers.
- 1 \leq A, B \leq 3
Input
Input is given from Standard Input in the following format:
A B
Output
If there is an integer C between 1 and 3 that satisfies the condition, print Yes
; otherwise, print No
.
Sample Input 1
3 1
Sample Output 1
Yes
Let C = 3. Then, A \times B \times C = 3 \times 1 \times 3 = 9, which is an odd number.
Sample Input 2
1 2
Sample Output 2
No
Sample Input 3
2 2
Sample Output 3
No