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

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

# solve
ans = 'Yes' if (A * B) % 2 == 1 else 'No'

# output
print(ans)

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

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

Submission status: Accepted

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

import sys

input = sys.stdin.readline

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

main()

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:
l=list(map(int,input().split()))
print("Yes" if all([i%2==1 for i in l]) else "No")

Submission status: Accepted

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

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:
import sys
sys.setrecursionlimit(10**7)
INTMAX = 9223372036854775807
INTMIN = -9223372036854775808
MOD = 1000000007
def POW(x, y): return pow(x, y, MOD)
def INV(x, m=MOD): return pow(x, m - 2, m)
def DIV(x, y, m=MOD): return (x * INV(y, m)) % m
def LI(): return [int(x) for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()
def II(): return int(input())

A,B=LI()
print('Yes' if A%2 and B%2 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())
#ls = list(map(int,input().split()))
#n = int(input())
#s = input()

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

Submission status: Accepted

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

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 = list(map(int,input().split()))

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

Submission status: Accepted

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

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:
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 % 2 != 0 and 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:
print("YNeos"['2'in input()::2])

Submission status: Accepted

Solution code:
#109
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*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 1 in [(A*B*c)%2 for c in [1,3,5,7,9]] else 'No')

Submission status: Accepted

Solution code:
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

A, B = nl()

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

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

Submission status: Accepted

Solution code:

# INPUT
ab = list(map(int, input().split()))

# # PROCESS
answer = "Yes"
if (2 in ab):
  answer = "No"


# # OUTPUT
print(answer)

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())
flag = 0
if A%2 == 1 and B%2==1:
    flag = 1
if flag == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
flag = 0
for i in range(3):
    tmp = A*B*(i+1)
    if tmp % 2 == 1:
        flag = 1

if flag == 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())
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) 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:
#!/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:
        print(NO)
    else:
        print(YES)
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
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:
print("YNeos"['2'in input().split()::2])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().rstrip().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!=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:
inp = input().split(" ")
a = int(inp[0])
b = int(inp[1])

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 * b % 2 == 1 else "No")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a%2+b%2==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 = map(int, input().split())

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

Submission status: Accepted

Solution code:
A,B = list(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:
# -*- 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())
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%2 == 1 and b%2 == 1) else "No")

Submission status: Accepted

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

print("No" if "2" in a or "2" in b else "Yes")

Submission status: Accepted

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

for i in range(1,3):
    if ((a*b*i)%2) == 1:
        c = 1

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

Submission status: Accepted

Solution code:
A, B = [int(ab) for ab 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*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:

lst_1 = input().split()

A = int(lst_1[0])
B = int(lst_1[1])

ans = "Yes"

if (A * B) % 2 == 0:
    ans = "No"

print(ans)

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

Submission status: Accepted

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

ans1 = a * b
ans2 = a* b * 2
ans3 = a * b* 3

if ans1%2 == 1:
    print('Yes')
    exit
elif ans2%2 ==1:
    print('Yes')
    exit
elif ans2%2 ==1:
    print('Yes')
    exit
else:
    print("No")

Submission status: Accepted

Solution code:
a, b = [int(i) for i in 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:
data = list(map(int,input().split()))
if data[0]%2 == 0 or data[1]%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==0 or b%2==0:
    print("No")

else:
    print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
print('YNeos'[1-(A*B)%2::2])

Submission status: Accepted

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a,b = f()
    for i in range(1,4):
        if a*b*i%2 == 1:
            print("Yes")
            return
    
    print('No')
    

solve()

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(elem) for elem 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, raw_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:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

A, B = [int(x) for x in stdin.readline().rstrip().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())
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:
#!/usr/bin/env python3
import sys

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

def solve(A: int, B: int):
    for C in range(1,4):
        if (A*B*C) % 2 == 1:
            print(YES)
            return
    print(NO)


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
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 == 1:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

flag = False
for i in range(1,4):
	if (a*b*i)%2 != 0 :
		flag = True
	if flag :
		break

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
A - ABC333
https://atcoder.jp/contests/abc109/tasks/abc109_a

"""
import sys


def solve(A, B):
    if A == 2 or B == 2:
        return 'No'
    return 'Yes'


def main(args):
    A, B = map(int, input().split())
    ans = solve(A, B)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print('Yes' if a & 1 and b & 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:

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

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())
print('Yes' if (A * B) % 2 != 0 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())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = [int(i) for i in input().split()]
print("Yes") if (A*B) % 2 != 0 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:
import sys


def input():
    return sys.stdin.readline()[:-1]

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


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('No' if a*b%2==0 else '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 = 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())
flag = False
if (a*b) % 2 == 1:
    flag = True
if (a*b*3) % 2 == 1:
    flag = True
if flag:
    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==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

A,B = [int(x) for x 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())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
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 == 1 and B%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())
if A==2 or B==2:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
ab = input().split()

if '2' in ab:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
###############################################################################

from sys import stdout
from bisect import bisect_left as binl
from copy import copy, deepcopy


mod = 1


def intin():
    input_tuple = input().split()
    if len(input_tuple) <= 1:
        return int(input_tuple[0])
    return tuple(map(int, input_tuple))


def intina():
    return [int(i) for i in input().split()]


def intinl(count):
    return [intin() for _ in range(count)]


def modadd(x, y):
    global mod
    return (x + y) % mod


def modmlt(x, y):
    global mod
    return (x * y) % mod


def lcm(x, y):
    while y != 0:
        z = x % y
        x = y
        y = z
    return x


def combination(x, y):
    assert(x >= y)

    if y > x // 2:
        y = x - y

    ret = 1

    for i in range(0, y):
        j = x - i
        i = i + 1

        ret = ret * j
        ret = ret // i

    return ret


def get_divisors(x):
    retlist = []
    for i in range(1, int(x**0.5) + 3):
        if x % i == 0:
            retlist.append(i)
            retlist.append(x // i)
    return retlist


def get_factors(x):
    retlist = []
    for i in range(2, int(x**0.5) + 3):
        while x % i == 0:
            retlist.append(i)
            x = x // i
    retlist.append(x)
    return retlist


def make_linklist(xylist):
    linklist = {}
    for a, b in xylist:
        linklist.setdefault(a, [])
        linklist.setdefault(b, [])
        linklist[a].append(b)
        linklist[b].append(a)
    return linklist


def calc_longest_distance(linklist, v=1):
    distance_list = {}
    distance_count = 0
    distance = 0
    vlist_previous = []
    vlist = [v]
    nodecount = len(linklist)

    while distance_count < nodecount:
        vlist_next = []
        for v in vlist:
            distance_list[v] = distance
            distance_count += 1
            vlist_next.extend(linklist[v])
        distance += 1
        vlist_to_del = vlist_previous
        vlist_previous = vlist
        vlist = list(set(vlist_next) - set(vlist_to_del))

    max_distance = -1
    max_v = None
    for v, distance in distance_list.items():
        if distance > max_distance:
            max_distance = distance
            max_v = v

    return (max_distance, max_v)


def calc_tree_diameter(linklist, v=1):
    _, u = calc_longest_distance(linklist, v)
    distance, _ = calc_longest_distance(linklist, u)
    return distance


###############################################################################


def main():
    a, b = intin()

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


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 = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inpl(): return list(map(int, input().split()))
def inpl_str(): return list(input().split())

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

Submission status: Accepted

Solution code:
A,B=[int(a) for a in input().split(" ")]
for C in range(1,4):
    if A*B*C%2==1:
        print("Yes")
        exit()
print("No")

Submission status: Accepted

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

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())
print("Yes" if a != 2 and b != 2 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 a*b % 2 != 0 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==1 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(i) for i in 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:
    ans = 'No'
else:
    ans = 'Yes'
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=list(map(int,input().split()))
Key=False

for i in range(1,4):
    if 0<A*B*i%2:
        Key=True
        break
    
if Key==True:
    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(_) for _ 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) and (B % 2 != 0):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print("Yes") if a * b % 2 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:
import sys
A, B = map(int, input().split())

AB = A * B
for i in range(3):
    tmp = AB * (i + 1)
    if tmp % 2 != 0:
        print('Yes')
        sys.exit()

print('No')

Submission status: Accepted

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