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:
#!/usr/bin/env python3
import sys
from math import *
from itertools import *
from collections import *
from functools import *
try:
    from math import gcd
except Exception:
    from fractions import gcd

YES = "Yes"  # type: str
NO = "No"  # type: str

def solve(A: int, B: int):
    return NO if (A * B) % 2 == 0 else YES


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    result = solve(A, B)
    print(result)

if __name__ == '__main__':
    main()

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 print('No')

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    a = input().split()
    if int(a[0])%2 == 1 and int(a[1])%2 == 1:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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!=0 and b%2!=0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a, b = map(int, 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())

if (a * b) % 2 != 0:
    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())

exists = 'No'

for c in range(1, 4):
    if (A * B * c) % 2 == 1:
        exists = 'Yes'
        break

print(exists)

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=list(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 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 * B % 2 == 0 :
    print('No')
else :
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import re

n = input()
n = re.split(" ",n)

A = int(n[0])
B = int(n[1])
t = 0
for i in range(1,4):
    save = A*B*i
    if(save % 2 == 1):
        t = 1

if(t == 1):
    print("Yes")
elif(t == 0):
    print("No")

Submission status: Accepted

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

if a%2==0:
    evena=1

if b%2==0:
    evenb=1

if evena != 1 and evenb != 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().rstrip().split())
print("No" if A % 2 == 0 or B % 2 == 0 else "Yes")

Submission status: Accepted

Solution code:
num = str(input()).split(' ')
A = int(num[0])
B = int(num[1])

if (A%2==1)&(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())
for i in range(1, 4):
    if (A * B * i) % 2 == 1:
        print("Yes")
        exit()
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())
print("No" if A%2==0 or B%2==0 else "Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def is_even(num):
    return num % 2 == 0

A, B = map(int, input().split())
# 1, 2, 3で繰り返す
for C in range(1, 4):
    if not is_even(A*B*C):
        print('Yes')
        # exitでプログラムを終わらせる
        exit()
# 'Yes'の場合ここまで到達しない
print('No')

Submission status: Accepted

Solution code:
def is_even(num):
    return num % 2 == 0

A, B = map(int, input().split())
# 1, 2, 3で繰り返す
for C in range(1, 3):
    if not is_even(A*B*C):
        print('Yes')
        # exitでプログラムを終わらせる
        exit()
# 'Yes'の場合ここまで到達しない
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:
import functools
import math

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


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


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


def inls():
    return input().split()


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper



a, b = inl()
ok = False
for c in range(1, 4):
    if c* a * b %2 == 1:
        ok = True
print('Yes' if ok else '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 == 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())

n = a * b
if n % 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())
if a*b%2 == 0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC109A - ABC333
data = list(map(int, input().rstrip().split()))
if 2 in data:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(1, 4):
    if (i * A * B)%2 == 1:
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LS()
    return l
sys.setrecursionlimit(1000000)
mod = 1000000007

#A
def A():
    a,b,c = LI()
    print(9*max(a,b,c)+a+b+c)
    return

#B
def B():
    a,b = LI()
    if a*b %2:
        print("Yes")
    else:
        print("No")
    return

#C
def C():
    k = I()
    print(k//2-1)*(k//2)
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#I
def I_():
    return

#J
def J():
    return

#Solve
if __name__ == "__main__":
    B()

Submission status: Accepted

Solution code:
input = input().split()
A = int(input[0])
B = int(input[1])


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# -*- coding: utf-8 -*-

A, B = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str

def solve(A: int, B: int):
    if A * B % 2 == 0:
        ret = NO
    else:
        ret = YES
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a=list(input().split())
b=int(a[0])
c=int(a[1])
d=int(b*c)
if d%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())

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

Submission status: Accepted

Solution code:
#109 A

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left

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

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:
tmp = input().split(" ")
a = int(tmp[0])
b = int(tmp[1])

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 != 0 and B % 2 != 0:
    print("Yes")
else:
    print("No")

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 = 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 = 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())
if (A * B) % 2 == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=list(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 = 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 % 2 == 0 or 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 == 1 else 'No')

Submission status: Accepted

Solution code:
print("No" if "2" in input().split() else "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:
def YesNo(f):
	return ["Yes", "No"][not(f)]

A, B = map(int, input().split())
print(YesNo(A*B%2!=0))

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())

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b = [int(i) for i in 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 != 2 and  B != 2 else 'No')

Submission status: Accepted

Solution code:
#!/usr/bin/python

def main():
    A, B = [int(x) for x in input().split()]
    print('No') if A == 2 or B == 2 else print('Yes')

if __name__ == '__main__':
    main()

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==1:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
D = A * B
if D % 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:
# -*- coding: utf-8 -*-

A, B = map(int, input().split())

print('No' if A * B % 2 == 0 else '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())
for c in range(1, 4):
    if (a * b * c) % 2 != 0:
        print('Yes')
        break
else:
    print('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, 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())
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==0 or 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:
from collections import Counter
from functools import reduce
import fractions
import math
import statistics
import sys
import time
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]  # LIST INT
def LF(): return [float(x) for x in sys.stdin.readline().split()]  # LIST FLOAT
def LS(): return sys.stdin.readline().split()  # LIST STRING
def MI(): return map(int, sys.stdin.readline().split())  # MAP INT
def II(): return int(sys.stdin.readline())  # INPUT INT
def IS(): return input()  # INPUT STRING
def P(x): return print(x)
def C(x): return Counter(x)
def GCD_LIST(numbers):  # greatest common divisor
    return reduce(fractions.gcd, numbers)
def LCM_LIST(numbers):  # least common multiple
    return reduce(LCM, numbers)
def LCM(m, n):
    return (m * n // fractions.gcd(m, n))


a, b = MI()
P('Yes') if a % 2 == 1 and b % 2 == 1 else P('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())

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 or B == 2:
    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:
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 == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
A,B=map(int,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())
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()))
if (A*B) % 2 == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b=map(int,input().split(' '))
d=a*b
if d%2!=0:
    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:
A,B = map(int, input().split())
print("Yes" if A*B%2 != 0 else "No")

Submission status: Accepted

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

Submission status: Accepted

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

flag = 0
for C in range(1,4):
    if (A*B*C) % 2 == 1:
        flag = 1
        break
if flag == 1:
    print('Yes')
else:
    print('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, input().split())

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

if a * b * 1 % 2 == 1:
    print("Yes")
elif a * b * 2 % 2 == 1:
    print("Yes")
elif a * b * 3 % 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:
a, b = map(int,input().split())
if a%2 == b%2 == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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 = 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(x) for x in input().split()]
print('Yes' if (A*B)%2==1 else 'No')

Submission status: Accepted

Solution code:
A,B = [int(x) for x in 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 a % 2 != 0 and b % 2 != 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int):
    if A % 2 == 0 or B % 2 == 0:
        print(NO)
    else:
        print(YES)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


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:
a,b=list(map(int,input().split()))
print("Yes" if a%2==1 and b%2 == 1 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    A, B = map(int, input().split(' '))
    for c in range(1, 4):
        re = A * B * c
        if re % 2 == 1:
            print('Yes')
            return
    print('No')
    return

main()

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=map(int,input().split())
print("Yes" if a%2 and b%2 else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
ab=input().split()
A=int(ab[0]);B=int(ab[1])
c=False
if (A*B*1)%2==1:
    c=True
if (A*B*2)%2==1:
    c=True
if (A*B*3)%2==1:
    c=True
if c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print('YNeos'[a*b%2==0::2])

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 = [int(x) for x in input().split()]
print('Yes' if [A, B].count(2) == 0 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 = [int(x) for x 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())
print('No' if a%2==0 or b%2==0 else 'Yes')

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
A = i[0]
B = i[1]

ABC1 = A * B * 1
ABC2 = A * B * 2
ABC3 = A * B * 3

def kisuu(num):
  if num % 2 == 1:
    return True
  else:
    return False

if kisuu(ABC1):
  print('Yes')
elif kisuu(ABC2):
  print('Yes')
elif kisuu(ABC2):
  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())
if a % 2 == 1 and b % 2 == 1:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

c=1
if a*b*c%2==0:
    c=2
    if a*b*c%2==0:
        c=3
        if a*b*c%2==0:
            print("No")
        else:
            print("Yes")   
    else:
        print("Yes")        
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:
a,b = map(int,input().split())
print(['No','Yes'][(a*b)%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:
# coding: utf-8
A, B = map(int, input().split())
print(['Yes', 'No'][A % 2 == 0 or B % 2 == 0])

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()]
print("Yes" if a%2==1 and b%2==1 else "No")

Submission status: Accepted

Solution code:
# a=1, b=3, c=5, d=7
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 = 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(' '))
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:
# 2019/03/10
# AtCoder Beginner Contest 109 - A

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

ans = "No"
for idx in range(1, 3):
    if a * b * idx % 2 == 1:
        ans = "Yes"
        
# Output
print(ans)

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 = [int(i) for i in 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 A%2==0 or B==2:
  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:
ri = lambda: int(input())
rl = lambda: list(map(int,input().split()))
rr = lambda N: [ri() for _ in range(N)]
YN = lambda b: print('YES') if b else print('NO')
yn = lambda b: print('Yes') if b else print('No')
OE = lambda x: print('Odd') if x%2 else print('Even')
INF = 10**18

A,B=rl()
yn(A%2==1 and B%2==1)

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())
temp=a*b
if temp%2==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def abc333(A: int, B: int)->bool:
    return (A == 1 or A == 3) and (B == 1 or B == 3)


if __name__ == "__main__":
    A, B = map(int, input().split())
    yes = abc333(A, B)
    print('Yes' if yes else '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())
print("Yes" if (A*B)%2==1 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
A,B=[int(x) for x in stdin.readline().rstrip().split()]
flag=0
for i in range(1,4):
    if (i*A*B) %2 != 0:
        print("Yes")
        break
    if i==3:
        flag=1
if flag==1:
    print("No")

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print("Yes"if a*b%2>0else"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:
x, y = map(int, input().split())
if x * y % 2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

d =0
for i in range(1,4):
	if a*b*i % 2 == 1:
		d += 1

if d == 0:
	print('No')
else:
	print('Yes')

Submission status: Accepted

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

if num.count(2)>0:
  print('No')
else:
  print('Yes')