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

flag=0

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

if flag!=0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b = [int(_) for _ in 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('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 == 1 and b % 2 == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('Yes' if eval(input().replace(' ', '*')) % 2 == 1 else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

for c in range(1, 4):
    if a * b * c % 2:
        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, input().split(' '))
print("Yes" if a*b % 2 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%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:
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())
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 == 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 * B) % 2 == 1 else 'No')

Submission status: Accepted

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

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

print('No')

Submission status: Accepted

Solution code:
print("Yes" if '2' not in input() else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input().split()
A, B = int(n[0]), int(n[1])
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&1 and b&1:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

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

Submission status: Accepted

Solution code:
#ABC 109A
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());print("YNeos"[a*b % 2 == 0::2])

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

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

a_isOdd = (a%2 == 1)
b_isOdd = (b%2 == 1)

if a_isOdd and b_isOdd:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

for i in range(1,3):
    if (A*B*i)%2==1:
        print("Yes")
        exit()
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('Yes' if eval(input().replace(' ','*')+'%2==1') else 'No')

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y = map(int,input().split())
if(x%2==0 or y%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:
#coding:utf-8
a, b = map(int, input().split())

# a*bが偶数の場合は条件を満たすcは存在しない
# a*bが奇数の場合はc=1, 3の時条件を満たす

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*b % 2 and a*b*3 % 2 else 'No')

Submission status: Accepted

Solution code:
print("YNeos"["2"in input()::2])

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

Submission status: Accepted

Solution code:
a, b = 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())
print("NYoe s"[A*B%2::2])

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
print("NYoe s"[A%2and B%2::2])

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
print("YNeos"[not (A%2and B%2)::2])

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 main():
    A, B = map(int, input().split())
    if (A*B) % 2 == 1:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main())

Submission status: Accepted

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

Submission status: Accepted

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

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


main()

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,b = input().split()
if "2" in a or "2" in b:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

ans = False
for C in range(3):
  if A*B*C%2==1:
    ans  = True
print('Yes' if ans else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for c in range(1, 4):
    if (a * b * c) % 2 == 1:
        print("Yes")
        exit(0)
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 = list(map(int, input().split()))
print("No" if (A*B)%2 == 0 else "Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = (int(i) for i in input().split())
print("Yes" if (a*b)&1 or (a*b*2)&1 or (a*b*3)&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:
import math
import sys
import queue
from collections import Counter
from itertools import accumulate
from fractions import gcd
from functools import reduce


def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

sys.setrecursionlimit(10000)

mod = 1000000007

"""
# 0埋め, 小数点出力桁指定時のときの出力
a = 100
b = 0.987654321
print("{0:06d}-{1:6f}".format(a,b))
000100-0.987654

# 文字列をリストに格納
char_list = list("abcd") # ["a","b","c","d"]

# 標準入力取得
## 文字列
    = sys.stdin.readline().rstrip()
    = list(sys.stdin.readline().rstrip())

## 数値
    = int(sys.stdin.readline())
    = map(int, sys.stdin.readline().split())
    = list(map(int, sys.stdin.readline().split()))
    = [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""

if __name__ == "__main__":
    A, B = map(int, sys.stdin.readline().split())
    if A == 2 or B == 2:
        print("No")
    else:
        print("Yes")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
k = a*b
if(k%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 = [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())
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:
# -*-coding: utf-8 -*-
A, B = map(int, input().split())
if A != 2 and B != 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
print('No' if "2" in input() else 'Yes')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
print("Yes" if eval(input().replace(" ","*"))%2==1 else "No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    print(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:
print("Yes" if eval(input().replace(" ","*"))%2 else "No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin

A,B = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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


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

Submission status: Accepted

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


if __name__ == "__main__":
    test()

Submission status: Accepted

Solution code:
import math

# inputList=[]
# for i in range(6):
#     inputNum = input()
#     inputList.append(inputNum)
inputa = input().split()
# inputb = input().split()

# inputa = [int(n) for n in inputa]
# inputa.sort()

a = int(inputa[0])
b = int(inputa[1])
# c = int(inputa[2])

# x = int(inputb[0])
# y = int(inputb[1])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = map(int,input().split())
f = False
for c in range(3):
  if A*B*c%2 ==0:
    pass
  else:
    f = True
if f:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

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):
    flag = False
    for i in range(1,3+1):
        if A * B * i % 2 == 1:
            flag = True
    if flag == True:
        print('Yes')
    else:
        print('No')
    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:
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 & 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:
A,B = map(int,input().split())
C = [1,2,3]

for i in C:
  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 and B!=2:
	print('Yes')
else:
	print('No')

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

Submission status: Accepted

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

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

def odd_def(num):
    if num % 2 == 0:
        return False
    else:
        return True

def main():
    a,b = map(int, input().split())
    for c in range(1,4):
        mal = a*b*c
        if odd_def(mal):
            print('Yes')
            sys.exit()
    print('No')


if __name__ == '__main__' :
    main()

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
from operator import itemgetter

def main():
	a, b = map(int, input().strip().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:
#ABC110
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 % 2 != 0) or (A*B*3 % 2 != 0):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

if A[0] == '2' or A[1] == '2':
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
#109 ABC333

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


def main():

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

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

        
    
if __name__== "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = [int(i) for i in input().split()]
if l[0]%2 == 0 or l[1]%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:
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())
if a % 2 != 0 and b % 2 != 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

# print(A)
# print(B)

# print(A * B)

# 条件を満たすような C が存在するなら Yes、そうでないなら No を出力せよ。

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

Submission status: Accepted

Solution code:
def main27():
    data = input().split()
    num = []
    for i in range(2):
        num.append(int(data[i]))
    if (num[0] * num[1]) % 2 == 1:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main27()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

res='Yes'

if a%2==0 or b%2==0:
	res='No'

print(res)

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
stdin = sys.stdin
sys.setrecursionlimit(10**9)
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

a,b = na()
d = 1 if a%2==0 or b%2==0 else 0
print(['Yes','No'][d])

Submission status: Accepted

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

if all(x % 2 != 0 for x in a):
  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 = 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 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:
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
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

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

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

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

Submission status: Accepted

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

def solve(a,b):
    for c in range(1, 3):
        if (a * b * c) % 2 == 1:
            return True
        else:
            return False

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

Submission status: Accepted

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

print(ans)