Problem:


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



Sample input:
3 1


Sample output:
Yes

Submission status: Accepted

Solution code:
import sys

num_text = input().split()
a = int(num_text[0])
b = int(num_text[1])

for c in range(1,3):
    ans = a * b * c

    if ans % 2 == 1:
        print('Yes')
        sys.exit()

print('No')

Submission status: Accepted

Solution code:
A, B = map(int, raw_input().split())
if A != 2 and B != 2: print 'Yes'
else: print 'No'

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A * B % 2 == 1:
    print('Yes')
else:
 print('No')

Submission status: Accepted

Solution code:
print(["Yes","No"]["2"in input()])

Submission status: Accepted

Solution code:
a=input();print(["Yes","No"]["2" in a])

Submission status: Accepted

Solution code:
a,s,b=input();print(["No","Yes"][int(a)*int(b)%2])

Submission status: Accepted

Solution code:
ab = map(int, input().split(" "))

print("Yes" if 2 not in ab else "No")

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if (a*b)%2==0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())

t = a * b

if a*b % 2 == 1:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if (a*b)%2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
isOdd = "No"
for c in range(1,4):
    if (a * b * c) % 2 == 1:
        isOdd = "Yes"
        break
print(isOdd)

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if a %2 == 0 or b % 2 ==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a, b = [int(data) for data in input().split(' ')]
if a*b % 2 == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
if A%2 == 0 or B%2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

for c in range(1, 4):
    if (a * b * c) % 2 == 1:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
def solve():
    a,b = map(int, input().split())

    if a*b%2 == 0:
        print('No')
    else:
        print('Yes')

if __name__ == "__main__":# {{{
    solve()

Submission status: Accepted

Solution code:
print(" YNeos"[eval(input().replace(" ","*"))%2::2])

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a%2==1 and b%2==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#109
a,b=map(int,input().split())
if a*b%2==0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
input = input()
args = input.split()
if ( int(args[0]) * int(args[1]) ) % 2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
# coding: utf-8

def main():
    a, b = map(int, input().split())

    if a % 2 == 0 or b % 2 == 0:
        print('No')
        return
    
    print('Yes')
    return

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
if (A * B) % 2 == 0:
	print("No")
else:
	print("Yes")

Submission status: Accepted

Solution code:
# coding:utf-8

b, c = map(int, raw_input().split())

if (b%2 == 1 and c%2 == 1):
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
args = input().split()
if ( int(args[0]) * int(args[1]) ) % 2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a, b = [int(n) for n in input().split()]
if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A,B=list(map(int,input().split()))
for C in [1,2,3]:
    if(A*B*C%2==1):
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a%2==0 or b%2==0: print("No")
else: print("Yes")

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    AB = [int(n) for n in input().split()]
    if AB[0] * AB[1] % 2 == 0:
        print('No')
    else:
        print('Yes')

Submission status: Accepted

Solution code:
A, B = map(int, raw_input().split())

if A*B % 2 == 0:
    print "No"
else:
    print "Yes"

Submission status: Accepted

Solution code:
a,b=[int(x) for x in input().split()]
if a*b%2 == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a==2 or b==2:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if(A % 2 == 1 and B % 2 == 1):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if a*b %2 == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b=map(int, input().split())
print('Yes' if a * b % 2 == 1 else 'No')

Submission status: Accepted

Solution code:
A,B=map(int,input().split(" "))

if(A*B%2==0):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
A, B = list(map(int, input().split()))

if (A * B % 2 == 1):
    ans = "Yes"
else:
    ans = "No"
    
print(ans)

Submission status: Accepted

Solution code:
A, B = (int(i) for i in input().split())
C = 1
flag = False

while (C <= 3):

    if ((A*B*C)%2 == 1):

        flag = True
        break
    
    C += 1


if flag == True:

    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
print(["No","Yes"][A*B%2])

Submission status: Accepted

Solution code:
a = input().split(" ")
cnt = 0
for i in range(2):
    if int(a[i])%2 == 0:
        cnt +=1
if cnt >0 :
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a%2==1 and b%2==1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
if A%2 == 1 and B%2 == 1:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a*b % 2 ==0 :
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

print('Yes' if A * B % 2 else 'No')

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if a*b % 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if (A*B)%2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
A, B = list(map(int, input().split()))
if (A*B%2 == 1):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
"""
1 以上 3 以下の整数 A,B
が与えられます。
A×B×C
が奇数となるような 1 以上 3 以下の整数 C が存在するか判定してください。

入力がすべて奇数なら、Cも奇数で存在する
"""
a, b = map(int, input().split())

ans = a * b

if (ans % 2) != 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#abc333a

a,b=map(int,raw_input().split())
if (a*b)%2:
 print 'Yes'
else:
 print 'No'

Submission status: Accepted

Solution code:
a, b = map(int, input().split(' '))
if a*b % 2 == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
num = list(map(int,input().split()))
if num[0]*num[1]%2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
print('Yes' if A*B % 2 == 1 else 'No')

Submission status: Accepted

Solution code:
A, B = list(map(int, input().split()))
if A * B % 2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print('Yes' if any(a * b * c % 2 == 1 for c in range(1, 4)) else 'No')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
print('Yes'*(A%2==B%2==1)or'No')

Submission status: Accepted

Solution code:
A,B = list(map(int,input().split()))
if A%2 == 1 and B%2 ==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
print(["No","Yes"][(lambda a:(a[0]*a[1])%2)(list(map(int,input().split())))])

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
print("Yes" if (A*B) % 2 == 1 else "No")

Submission status: Accepted

Solution code:
# coding: utf-8


A,B = map(int,input().split())
if A != 2 and B != 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
print('No'*('2'in input())or'Yes')

Submission status: Accepted

Solution code:
print('NYoe s'[eval(input().replace(' ','*'))%2::2])

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a*b % 2 ==0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a,b=raw_input().split()
a=int(a)
b=int(b)
if (a==2)|(b==2):
  print "No"
else:
  print "Yes"

Submission status: Accepted

Solution code:
numbers = input()
num_a = int(numbers.split()[0])
num_b = int(numbers.split()[1])
if (num_a * num_b) % 2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
print("Yes" if A%2 and B%2 else "No")

Submission status: Accepted

Solution code:
a, b = [int(i) for i in input().split()]

if a % 2 != 0 and b % 2 != 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
flag = 0
for c in range(1,4):
    ans = a * b * c
    if ans % 2 == 1:
        flag = 1

if flag == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b = map(int, input().split())

if a*b%2 == 0:
  print("No")

else:
  print("Yes")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a*b % 2:print('Yes')
else:print('No')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if not (a%2 and b%2):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())
if a % 2 == 1 and b % 2 == 1:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
instr = input()
a, b = map(int, instr.split())
if a * b % 2 != 0:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)

Submission status: Accepted

Solution code:
A, B=map(int,input().split(" "))
if A*B%2==0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
 
if a * b % 2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
print('YNeos'[eval(input().replace(' ','*'))%2<1::2])

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
print("Yes" if (A*B)%2==1 else "No")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if A == 2 or B == 2:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if(a*b%2==0):
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print("YNeos"[a*b%2<1::2])

Submission status: Accepted

Solution code:
print("YNeos"[eval(input().replace(" ","*"))%2==0::2])

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if A != 2:
    if B != 2:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
(a, b) = map(int, input().split(" "))

if (a * b) % 2 == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())
 
if a % 2 != 0 and b % 2 != 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
def spaceinput():
    return list(map(int,input().split(" ")))



A,B=spaceinput()

if A*B%2==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a,b= map(int,input().split())

if(a % 2 == 0 or b % 2 == 0):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
A,B=map(int,input().split())

C=1
Answer=None

while C<3:
    if (A*B*C)%2!=0:
        Answer="Yes"
        break
    else:
        C+=1

if Answer is None:
    Answer="No"

print(Answer)

Submission status: Accepted

Solution code:
# -*- coding:UTF-8 -*-
s = input().split()
i = int(s[0]) * int(s[1])
if i %2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if A* B % 2 ==0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
if A % 2 != 0 and B % 2 != 0:
    print('Yes')
else:
        print('No')

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())
if a % 2 and b % 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
a=l[0]
b=l[1]
if a%2==0 or b%2==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a, b = [int(i) for i in input().split()]

print('Yes' if a % 2 != 0 and b % 2 != 0 else 'No')

Submission status: Accepted

Solution code:
a,b = map(int,input().split(' '))
for i in range(1,4):
    if((a * b * i)%2 == 1):
        print('Yes')
        exit(0)
print('No')

Submission status: Accepted

Solution code:
if input().count("2")>0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a,b = input().split()
if int(a) * int(b) % 2 == 0:
    print('No')
else: 
    print('Yes')

Submission status: Accepted

Solution code:
A, B = map(int, input() .split())
if (A * B) % 2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if (a*b) % 2 == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a,b=[int(s)for s in input().split(" ")]
print("Yes" if a*b%2!=0 else "No")

Submission status: Accepted

Solution code:
from sys import stderr
from functools import reduce
from operator import add
def f(): return [int(i) for i in input().split()]
def yes(n): print("Yes" if n else "No")
def debug(*x, sep=" ", end="\n"):
    for item in x:
        stderr.write(str(item))
        stderr.write(sep)
    stderr.write(end)

a,b = f()
if a % 2 != 0 and b % 2 != 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N, M = list(map(int, input().split())) # 整数
if N*M%2==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a,b = map(int,input().split(' '))
if a * b % 2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
h,w =map(int,input().split())
if (h%2 == 0 or w%2 == 0):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
l = [int(i) for i in input().split()]
if(l[0] * l[1] % 2 == 0):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
import sys
a, b = [int(i) for i in input().split(" ")]

for c in range(1, 4):
    if a * b * c % 2 == 1:
        print("Yes")
        sys.exit(0)
print("No")

Submission status: Accepted

Solution code:
if __name__ == '__main__':
  
	num = input().split()

	if int(num[0]) * int(num[1]) % 2 ==0:
		print("No")
	else:
  		print("Yes")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if ((a*b)%2==0):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a,b=list(map(int,input().split()))
if a%2==1 and b%2==1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b = map(int, input().split(" "))

if (a*b)%2 != 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#coding: utf-8
A, B = map(int, input().split())

if (A*B) % 2 !=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = [int(i) for i in input().split()]
sum = n[0] * n[1]
flag = False
for i in range(1, 3):
    if (sum * i % 2 != 0):
        flag = True

if flag:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
def LI(): return [int(x) for x in sys.stdin.readline().split()]


a, b = LI()

if a % 2 == b % 2 == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b = map(int,input().split())
if a == 2 or b == 2:
	print("No")
else:
	print("Yes")

Submission status: Accepted

Solution code:
a, b = input().split()
if int(a) % 2 == 0 or int(b) % 2 == 0:
	print("No")
else:
	print("Yes")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

if a%2==1 and b%2==1 :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
print('Yes' if (a*b)%2==1 else 'No')

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())

if (a%2==1 and b%2==1):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b = input().split(" ")
if a == "2" or b == "2":
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
print('YNeos'[1-eval(input().replace(' ','*'))&1::2])

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if(a*b%2==1):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
k = 0
listen = map(int, raw_input().split())
if listen[0] == 2:
 k = 1
if listen[1] == 2:
 k = 1
if k == 0:
 print("Yes")
else:
 print("No")

Submission status: Accepted

Solution code:
nums = [int(x) for x in input().split()]
print('Yes' if all([x % 2 != 0 for x in nums]) else 'No')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a != 2 and b != 2:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())

flag = False

c = 1

while c <= 3:
    num = a * b * c
    if num % 2 == 1:
        flag = True
    c += 1

if flag:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print('Yes' if a * b % 2 == 1 else 'No')

Submission status: Accepted

Solution code:
import sys
l = list(map(int, input().split()))
if (l[0] * l[1]) % 2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
if A%2!=0 and B%2!=0:
   print("Yes")
else:
   print("No")

Submission status: Accepted

Solution code:
x, y = map(int, input().split())

if x == 2 or y == 2:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
x = A * B
if x % 2 == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
flag = False
for i in range(1,4):
    if (A*B*i%2) == 1:
        flag = True

print("Yes" if flag else "No")

Submission status: Accepted

Solution code:
A, B = list(map(int, input().split()))
print('Yes' if A * B % 2 == 1 else 'No')

Submission status: Accepted

Solution code:
f = lambda: map(int,input().split())
n,m = f()
if n*m&1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A, B = [int(i) for i in input().split()]
ans = 'Yes' if A%2 == 1 and B%2 == 1 else 'No';
print (ans)

Submission status: Accepted

Solution code:
a, b = [int(c) for c in raw_input().split()]
if a*b % 2 == 0:
    print 'No'
else:
    print 'Yes'

Submission status: Accepted

Solution code:
a = input().split()
a = [int(i) for i in a]

if a[0] * a[1] % 2 == 0:
	print ('No')
else:
	print('Yes')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if a*b%2==0: print("No")
else: print("Yes")

Submission status: Accepted

Solution code:
A,B = map(int,input().split())

if A == 2 or B == 2:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
if (A*B)%2 == 0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
A, B = map(int,input().split())
if (A*B)%2==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
b, c = map(int, input().split())
if b%2 == 1 and c%2 == 1:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
(a, b) = list(map(int, input().split()))

if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
l = list(map(int, input().split())) # "1 2 3"と入力
a = l[0]
b = l[1]

if ((a % 2 == 1) and (b % 2 == 1)):
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a * b % 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# !/usr/bin/env python
# vim: set fileencoding=utf-8 :

"""
#
# Author:   Noname
# URL:      https://github.com/pettan0818
# License:  MIT License
# Created: 土  9/ 8 21:16:36 2018

# Usage
#
"""
def input_get():
    INPUT = input()
    INPUTPARSED = INPUT.split(' ')
    return [int(i) for i in INPUTPARSED]

def judge(data):
    """
    >>> judge([3,1])
    Yes
    >>> judge([1,2])
    No
    >>> judge([2,2])
    No
    """
    if (data[0] * data[1]) % 2 == 0:
        print('No')
    else:
        print('Yes')
if __name__ == '__main__':
    judge(input_get())

Submission status: Accepted

Solution code:
ini=map(int, raw_input().split())
ch=0
for i in ini:
    if i%2==0:
        print("No")
        ch=1
        break

if ch==0:
    print("Yes")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

a, b=map(int,input().split())

flag = 0

if(a < 1 or 3 < a or b < 1 or 3 < b):
    exit()

for i in range(1, 4):
    if((a*b*i)%2 == 1):
        print('Yes')
        flag = 1
        break

if(flag == 0):
    print('No')

Submission status: Accepted

Solution code:
import sys
a, b = map(int, input().split())
if (a == 1 or a == 3):
    if (b == 1 or b == 3):
        print("Yes")
        sys.exit()
    else:
        print("No")
        sys.exit()
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b = map(int, input().split())

if ((a * b) % 2) == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A, B= map(int, input().split())
for c in range(4):
    if (A*B*c) % 2 == 1:
        print("Yes")
        exit()

print("No")

Submission status: Accepted

Solution code:
A,B= map(int,input().split())
flag=0
def panduan():
    for i in range(1,4):
        result=A*B*i%2
        if result==1:
            global flag
            flag=1
            return flag
    return flag
panduan()
if flag==1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a == 2 or b == 2:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())
if a%2 == 0 or b%2 == 0:
	print 'No'
else:
	print 'Yes'

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict, deque
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permutations
from operator import add, mul, sub

sys.setrecursionlimit(10000)


def read_int():
    return int(input())


def read_int_n():
    return list(map(int, input().split()))


def read_float():
    return float(input())


def read_float_n():
    return list(map(float, input().split()))


def read_str():
    return input().strip()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(A, B):
    if A == 2 or B == 2:
        return 'No'
    return "Yes"


def main():
    A, B = read_int_n()
    print(slv(A, B))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
from collections import deque
import copy


def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [A, B] = [int(input_raw[0]), int(input_raw[1])]
    if A * B % 2 == 0:
        print "No"
    else:
        print "Yes"

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
flag = False
for C in range(1, 4):
    if(A*B*C%2 == 1):
        flag = True
if(flag):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if (a%2) == 1 & (b%2) == 1:
    print ("Yes")
else:
    print ("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
A, B = map(int, input().split())
if (A*B)%2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
import sys
A,B=map(int,input().split())
for i in range (1,4):
    if (A*B*i)%2==1:
        print("Yes")
        sys.exit()
print("No")

Submission status: Accepted

Solution code:
x,y = map(int,input().split())
if x%2 == 1 and y%2 == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b = map(int,(input().split(" ")))
if ((a%2) * (b%2)) != 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
x,y = map(int,input().rstrip().split())


if (x*y)%2 == 0:
	print("No")
else:
	print("Yes")

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))

if int(l[0]*l[1]) % 2 == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if (a*b)%2==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
if a % 2 == 0 or b % 2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a,b=input().split()
a,b=[int(a),int(b)]
flag=0
for i in range(1,4):
    p=a*b*i
    if p%2!=0:
        flag=1
        break
if flag==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
    A, B = map(int, raw_input().split())
    if A % 2 == 0 or B % 2 == 0:
        print("No")
    else:
        print("Yes")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a * b % 2 == 1 or a * b * 3 % 2 == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
numList=[ int(n) for n in input().split()]

if (numList[0]*numList[1]) % 2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
it = input().split()
i1 = int(it[0])
i2 = int(it[1])
for i in range(1, 4):
    if (i1 * i2 * i)%2 == 1:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if(a * b % 2 == 0):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if (A * B) % 2 == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if(A%2 == 1 and B%2 == 1):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())
flag = True
if a%2==0:
    flag=False
if b%2==0:
    flag=False

if flag==True:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

flag = False
for c in range(1, 4):
    if a * b * c % 2 == 1:
        print('Yes')
        flag = True
        break
if flag is False:
    print('No')

Submission status: Accepted

Solution code:
num_list = list(map(int, (input().split())))
a = num_list[0]
b = num_list[1]
if a != 2:
    if b != 2:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

is_odd = False
for c in range(1, 4, 1):
    # print(a, b, c)
    sum = a * b * c
    if sum % 2 == 1:
        is_odd = True

if is_odd:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A,B =map(int, input().split())
X=A*B
if X%2==0:
	print("No")
else:
	print("Yes")

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
if a % 2 == 0 or b % 2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
A, B = [int(c) for c in input().split()]
f = False

for C in range(1,3+1):
    if (A * B * C) % 2 != 0:
        f = True

if f:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
 
if (A * B) % 2 == 0 :
  print('No')
else :
  print('Yes')

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())
print "Yes" if a * b % 2 != 0 else "No"

Submission status: Accepted

Solution code:
a,b = map(int, input().split())

if a % 2 == 0 or b % 2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a,b=map(int, input().split())
j=False
for c in range(1,4):
    if a*b*c%2==1:
        j=True
print("Yes" if j else "No")

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if (A*B % 2 == 0):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a%2==1:
	if b%2==1:
		print('Yes')
	else:
		print('No')
else:
	print('No')

Submission status: Accepted

Solution code:
A,B=map(int,input().split())

if (A*B)%2==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print("Yes" if any([((a*b)*i)&1 for i in [1, 2, 3]]) else "No")

Submission status: Accepted

Solution code:
#! usr/bin/env python
# -*- coding: utf-8 -*-


def main():
    a, b = map(int, input().split())

    if a % 2 == 0 or b % 2 == 0:
        print("No")
    else:
        print("Yes")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print('No'if a*b%2==0else'Yes')

Submission status: Accepted

Solution code:
A, B=map(int,input().split())
if (A%2==1)and(B%2==1):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a,b = map(int, input().split())

if a*b%2 == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
A,B = map(int,input().split())

D=A*B

for C in range(1,3):
    if D*C%2==0:
        print("No")
        break
    else:
        print("Yes")
        break