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:

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

Submission status: Accepted

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

counter = 0
for C in range(1,4,1):
    if((A*B*C)%2 != 0):
        counter +=1

if(counter==0):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

ans = ((A * B) % 2) == 1

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

Submission status: Accepted

Solution code:
A, B = map(int,input().split())
ans='No'
for i in range(3):
    c = i + 1
    if A*B*c%2==1:
        ans="Yes"
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:
# https://atcoder.jp/contests/abc109/tasks/abc109_a
a, b = [int(x) for x in input().split()]
print("Yes") if a * b % 2 == 1 else print("No")

Submission status: Accepted

Solution code:
print(['No','No','Yes'][sum([n%2 for n in map(int,input().split())])])

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


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())
if a*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==1 and B%2==1:
  print('Yes')
else:
  print('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:
A, B = map(int, input().split())

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

Submission status: Accepted

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

while c <= 4:
    if c == 4:
        print("No")
        break

    if a * b * c % 2 == 1:
        print("Yes")
        break
    c += 1

Submission status: Accepted

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

while c < 5:
    if c == 4:
        print("No")
        break

    if a * b * c % 2 == 1:
        print("Yes")
        break
    c += 1

Submission status: Accepted

Solution code:
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B
 
abc_0 = list1_0 * list1_1 * 1
abc_1 = list1_0 * list1_1 * 2
abc_2 = list1_0 * list1_1 * 3
 
if abc_0 % 2 == 1 or abc_1 % 2 == 1 or abc_2 % 2 == 1:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

abc_0 = list1_0 * list1_1 * 1
abc_1 = list1_0 * list1_1 * 2
abc_2 = list1_0 * list1_1 * 3

if abc_0 in [3, 9, 15, 21, 27]:
    print("Yes")
elif abc_1 in [3, 9, 15, 21, 27]:
    print("Yes")
elif abc_2 in [3, 9, 15, 21, 27]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from sys import stdin

a, b = [int(x) for x in stdin.readline().rstrip().split()]
if a*b % 2 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
def solve(a, b):
    return "Yes" if a * b % 2 else "No"


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

main()

Submission status: Accepted

Solution code:
def main():
    A, B = map(int, input().split())
    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());print("YNeos"[a*b%2!=1and 3*a*b%2!=1::2])

Submission status: Accepted

Solution code:
a,b = (int(x) for x 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 == 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 = list(map(int, input().split()))
print('Yes' if a * b % 2 == 1 else 'No')

Submission status: Accepted

Solution code:
ans='Yes'
for a in input().split():
    a=int(a)

    if a%2==0:
        ans='No'

print(ans)

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

import math
import sys
import heapq
from operator import itemgetter
import itertools
input = sys.stdin.readline

# a = int(input().rstrip())
# a, b = map(int, input().rstrip().split())
# D = list(map(int, input().rstrip().split()))
# H = [int(input().rstrip()) for _ in range(L)]
# DD = [[0 for j in range(100)] for i in range(200)]
# dict = {} ## dictionary

# a = sorted(a, key=lambda x: x[1]))
# if __name__ == '__main__':


a, b = map(int, input().rstrip().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:
# https://atcoder.jp/contests/abc109/tasks/abc109_a

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

for c in range(3):
    if (a * b * c) % 2 != 0:
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
values = raw_input()
a,b = int(values.split(" ")[0]), int(values.split(" ")[1])

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

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

Submission status: Accepted

Solution code:
# A
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 == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

def main():
  input = sys.stdin.readline
  a, b = map(int, input().split())
  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%2 == 0 or B%2 == 0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

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 = (int(i) for i in input().split())
if (a*b)%2 == 1:print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
n,m=map(int,input().split())
if n%2!=0 and m%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:
#-*- coding:utf-8 -*-
"""
1以上3以下の整数A,Bが与えられます。
A×B×Cが奇数となるような1以上3以下の整数Cが存在するか判定してください。
"""
def judge(a, b):
    if(a%2 == 0 or b%2 == 0):
        print("No")
    else:
        print("Yes")


def main(input):
    str = input.split()
    A = int(str[0])
    B = int(str[1])
    judge(A, B)

if __name__ == "__main__":
    main(input())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().split()
i = s.count("2")
print("No") if i>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())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,m = map(int, input().split())
print('Yes') if n * m % 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=(int(x) for x in input().split())
ans = 'No'
for C in range(1,4):
    if A*B*C%2!=0:
        ans='Yes'
        break
print(ans)

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())
ans = True
for i in range(3):
    if (A*B*(i+1))%2!=0:
        ans = False
        break
if ans == False:
    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(long, raw_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:
# -*- coding: utf-8 -*-
#! python3

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*B%2 == 0):
  print('No')
else:
  print('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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from itertools import chain
from functools import reduce
from collections import OrderedDict, Counter, deque
import operator

a, b = map(int, input().split())
print("Yes" if (a & b) & 1 else "No")

Submission status: Accepted

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

from itertools import chain
from functools import reduce
from collections import OrderedDict, Counter, deque
import operator

a, b = map(int, input().split())
print("Yes" if any((a * b * x) & 1 for x in range(1, 4)) else "No")

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

Submission status: Accepted

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

def main():
    na = list(map(int, input().split()))
    A, B = na[0], na[1]

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
""" AtCoder """

import sys
input = sys.stdin.readline

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


main()

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

Submission status: Accepted

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

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


def main2():
    a, b = map(int, input().split())
    if a * 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:
X=input().split()
if int(X[0])*int(X[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:
# -*- 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())
A=(a*b)%2
if A==0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

if a + b < 2 or 6 < a + b:
    raise ValueError('Input value is more than 1 and less than 3.')

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

Submission status: Accepted

Solution code:
A, B = map(int, str(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())
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:
def main(t):
    if "2" in t:
        print("No")
    else:
        print("Yes")

t = input()
main(t)

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())
for C in [1, 2, 3]:
	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 * 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 "Yes"
else:
    print "No"

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
for i in range(1, 3+1):
    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 or B == 2:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("No" if "2" in input() else "Yes")
#inputに2が入ってたら

Submission status: Accepted

Solution code:
AB = list(map(int, input().split()))
if AB[0]%2!=0 and AB[1]%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:
x, y = map(int,input().split())
if (x*y)%2==1 :
	print("Yes")
else :
	print("No")

Submission status: Accepted

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


if __name__ == '__main__':
    main()

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

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

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

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

Submission status: Accepted

Solution code:
a, b = list(map(int,input().split()))
print("{}".format("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:
li = list(map(int, input().split()))
if 2 in li:
	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 == 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())
print(["No","Yes"][a*b%2])

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:
# coding: utf8

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

a,b = read_int_n()
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 or b == 2: print("No")
else: print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

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


def main():
    """Function."""
    a, b = map(int, input().split())
    if a == 2 or b == 2:
        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:
    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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
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 % 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("Yes")
else:
    print("No")

Submission status: Accepted

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

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 % 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の値を取得
A, B = map(int, input().split())
# Cの値を設定
C = 'Yes'
# AとBを掛け合わせた結果が奇数かどうか判断
if (A * B) % 2 == 0:
    C = 'No'
# 出力
print(C)

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 == True:
    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:
print("YNeos"[input().count('2')>0::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:
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()))
print("Yes" if A % 2 and B % 2 else "No")

Submission status: Accepted

Solution code:
nums = input()

if '2' in nums:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

# 1
s = raw_input()
a, b = s.split()

ret = False
for c in xrange(1, 4):
    i = int(a) * int(b) * c
    if i % 2 == 1:
        ret = True
print 'Yes' if ret else 'No'

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:
nums = raw_input()

if '2' in nums:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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


s = raw_input()
a, b = s.split()

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

Submission status: Accepted

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


s = raw_input()
a, b = s.split()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
nums = input()

if '2' in nums:
    print("No")
else:
    print("Yes")
#17025159 | nowg's solution for [AtCoder-4250] [Problem A]

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

Submission status: Accepted

Solution code:
def main():
    a, b = map(int, input().strip().split())
    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())
 
D = A * B
 
if( D % 2 == 1):
  print('Yes')
  
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# https://beta.atcoder.jp/contests/abc109/tasks/abc109_a
def solve():
    a, b = map(int, input().split())
    for i in range(1, 4):
        if a * b * i % 2 != 0:
            print('Yes')
            break
    else:
        print('No')


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
a=input().strip().split(" ")
b=[int(i) for i in a]
c=0

for i in range(1,4):
    if(b[0]*b[1]*i%2==1):
        c+=1
if(c>0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys


def main():
    a, b = list(map(int, input().split()))
    for i in range(1, 4):
        if a * b * i % 2 == 1:
            print('Yes')
            return

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# あ
numbers = [int(i) for i in input().split()]

A = numbers[0]
B = numbers[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) == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if(A*B%2==0):#A*B偶数なら
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


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



if __name__ == '__main__':
    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:
def abc333(a, b):
    if a * b % 2 == 0:
        return 'No'
    return 'Yes'

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

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

Submission status: Accepted

Solution code:
def abc109_a():
    a, b = map(int, input().split())
    return ["No", "Yes"][a * b % 2]


print(abc109_a())

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