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: Wrong Answer

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

sys.setrecursionlimit(10000)


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


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


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


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


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


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


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


def mt(f):
    import time

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

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

    return wrap


@mt
def slv(A, B):
    if A % 2 == 0 and B % 2 == 0:
        return 'No'
    return "yes"


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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

sys.setrecursionlimit(10000)


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


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


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


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


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


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


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


def mt(f):
    import time

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

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

    return wrap


@mt
def slv(A, B):
    if A % 2 == 0:
        return 'No'
    if B % 2 == 0:
        return 'No'
    return "yes"


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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (A % 2) and (B % 2):
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (A * B) % 2 == 0 :
  print('no')
else :
  print('yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (A * B) % 2 == 0 :
  print('yes')
else :
  print('no')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
res='Yes'
if a*b ==0: res='No'
if a*b >3: res='No'
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
listA=list(map(int,input().split()))
A=listA[0]
B=listA[1]
if(A*B%2==0):
    print("no")
else:
    print("yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0
for i in range(3):
    if(A*B*(i+1)%2 == 1):
        print("Yes")
        sys.exit()

print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a * b in [1,3,9]:
  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*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 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())
flg = True
for i in range(1, 4):
    if A * B * i % 2 == 1:
        flg = False
        
if flg == False:
    print('Yes')
elif flg == True:
    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')
        break
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if count>=1:
    print('Yes')

elif count==0:
    print('No')

Submission status: Accepted

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

count=0 #初期化
for C in range(1,4):
    if A*B*C %2 ==1:
        count=count+1#Cに順番に１、２、３と代入していく中で、A×B×C が奇数になるたんびにcountに１加算していく
if count>0: #A×B×Cが奇数になるようなCが少なくとも１つ存在していたらYesと表示したい
    print("Yes")
    
else:
    print("No")

Submission status: Accepted

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

#偶数×偶数＝偶数、偶数×奇数＝偶数、奇数×奇数＝奇数。
#A*Bが偶数なら、A*B*Cが奇数となるような整数Cは無い。A*Bが奇数なら、A*B*Cが奇数となるような整数Cは無い

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

#if A*B %2 == 1:

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:
n,m = [int(x) for x in input().split()]
if n == 2 or m == 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!=0:
        print('Yes')
        exit()
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:
def mapt(fn, *args):
    return tuple(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


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


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())
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 = 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())
cnt = 0
for i in range(1,4):
    if a*b*i%2==1:
        cnt += 1
print("Yes" if cnt>0 else "No")

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:
a=eval(input().replace(*" *"))
print(["No","Yes"][a%2])

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

Submission status: Accepted

Solution code:
a = input().split()
if int(a[0])*int(a[1])%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*B%2 == 0 :
    print('No')
else :
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = map(int, input().split())
set_a_b = set(a)
even_count = 0
for i in set_a_b:
    if i % 2 == 0:
        even_count += 1

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
ans='No'
if a%2!=0 and b%2!=0:
  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:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    A, B = map(int, readline().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())

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

Submission status: Accepted

Solution code:
def main():
    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:
A, B = map(int, 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())
check = False
for C in range(1,4):
  if (A * B * C) % 2 == 1:
    check = True
    
print("Yes" if check 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:
n, k = map(int, input().split())
print("Yes" if n&1 and k&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 % 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())
cnt = 0
for c in range(1, 4):
    if (a*b*c) % 2 == 1:
        print("Yes")
        break
    else:
        cnt += 1
        if cnt == 3:
            print("No")
            break

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

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

Submission status: Accepted

Solution code:
n,m = map(int, input().split())
x = n*m

if x % 2==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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 (a*b)%2!=0 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==1:
        ans="Yes"
        break
print(ans)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
flag=0
 
for i in range(1,4):
  
  if (a*b*i)%2!=0:
    flag=1
    break
    
  else:
    continue
    

if flag==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:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    A, B = map(int, readline().split())

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

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]

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

Submission status: Accepted

Solution code:
import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


def main():
    a, b = nm()
    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:
import bisect, collections, copy, heapq, itertools, math, string, sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = float('inf')
def I(): return int(input())
def F(): return float(input())
def SS(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LSS(): return input().split()

def resolve():
    A, B = LI()

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

if __name__ == '__main__':
    resolve()

Submission status: Accepted

Solution code:
l = list(map(int,input().split()))
for i in l:
    if i%2==0:
        print('No')
        break
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:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

if cnt >= 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())
print("Yes" if A*B % 2 == 1 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=map(int,input().split());print('NYoe s'[a*b%2!=0::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
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==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==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=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 a % 2 == 1 and b % 2 == 1 else print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

	cnt = 0
	for c in range(1,4):
		if (a * b * c) % 2 == 1:
			print("Yes")
			break
	else:
		print("No")

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:
ans='Yes'
a,b=map(int,input().split())
if a%2==0 or b%2==0:
  ans='No'
print(ans)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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