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:
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni = lambda: int(ns())
nin = lambda y: [ni() for _ in range(y)]
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda y: [na() for _ in range(y)]
ns = lambda: stdin.readline().rstrip()
nsn = lambda y: [ns() for _ in range(y)]
ncl = lambda y: [list(ns()) for _ in range(y)]
nas = lambda: stdin.readline().split()

a, b = na()
flag = False
for c in range(1, 4):
    if (a * b * c) % 2 == 1:
        flag = True

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

Submission status: Accepted

Solution code:
A, B = [int(n) for n in 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 == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from functools import reduce
import math

def main():
    # 文字列の2進数を数値にする
    # '101' → '5'
    # 文字列の頭に'0b'をつけてint()にわたす
    # binary = int('0b'+'101',0)

    # 2進数で立っているbitを数える
    # 101(0x5) → 2
    # cnt_bit = bin(5).count('1')
    
    # N! を求める
    # f = math.factorial(N)

    # N の逆元
    # N_inv = pow(N,MOD-2,MOD)

    # nCr
    # Nの階乗 * rの階乗の逆元 * n-rの階乗の逆元
    
    # 切り捨て
    # 4 // 3
    # 切り上げ
    #-(-4 // 3)
    
    # 初期値用:十分大きい数(100億)
    INF = float("inf")

    # 大きな素数
    MOD = 10**9+7
    
    # 1文字のみを読み込み
    # 入力:2
    # a = input().rstrip()
    # 変数:a='2'
    
    # スペース区切りで標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a, b, c, d = (int(_) for _ in input().split())  
    # 変数:a=2 b=4 c=5 d =7
    
    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a = list(int(_) for _ in input().split())
    # 変数:a = [2, 4, 5, 7]    

    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2457
    # a = list(int(_) for _ in input())
    # 変数:a = [2, 4, 5, 7]    
    a, b = (int(_) for _ in input().split())
    if (a*b) % 2 == 1:
        print('Yes')
    else:
        print('No')
        
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
import fractions
import bisect
import collections
import itertools
import heapq
import string
import sys
import copy
from collections import deque
sys.setrecursionlimit(10**7)
MOD = 10**9+7
def gcd(a,b):return fractions.gcd(a,b) #最大公約数
def lcm(a,b):return (a*b) // fractions.gcd(a,b) #最小公倍数
def iin(): return int(input()) #整数読み込み
def ifn(): return float(input()) #浮動小数点読み込み
def isn(): return input().split() #文字列読み込み
def imn(): return map(int, input().split()) #整数map取得
def fmn(): return map(float, input().split()) #浮動小数点map取得
def iln(): return list(map(int, input().split())) #整数リスト取得
def iln_s(): return sorted(iln()) # 昇順の整数リスト取得
def iln_r(): return sorted(iln(), reverse=True) # 降順の整数リスト取得
def fln(): return list(map(float, input().split())) # 浮動小数点リスト取得
def join(l, s=''): return s.join(l) #リストを文字列に変換
def perm(l, n): return itertools.permutations(l, n) # 順列取得
def perm_count(n, r): return math.factorial(n) // math.factorial(n-r) # 順列の総数
def comb(l, n): return itertools.combinations(l, n) # 組み合わせ取得
def comb_count(n, r): return math.factorial(n) // (math.factorial(n-r) * math.factorial(r)) #組み合わせの総数
def two_distance(a, b, c, d): return ((c-a)**2 + (d-b)**2)**.5 # 2点間の距離
def m_add(a,b): return (a+b) % MOD


A,B = imn()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("YNeos"[eval(input().replace(" ","*"))%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 = map(int, input().split())
if A != 2 and B != 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:


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

if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


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


if __name__ == "__main__":
    main()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B=input().split()
if A=="2" or B =="2":
  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%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())
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 = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
a,b = map(int,input().split())
print("Yes" if a*b % 2 == 1 else "No")

Submission status: Accepted

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


if __name__ == '__main__':
    solve()

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:
C = map(str, input().split())
if "2" in C:
    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:
"""
author : halo2halo
date : 23, Jan, 2020
"""

import sys

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

a, b = map(int, readline().split())
print("Yes" if a != 2 and b != 2 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
def input(): return sys.stdin.readline().rstrip()

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

if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

INPUT = lambda: sys.stdin.readline().rstrip()
MAP = lambda: map(int, INPUT().split())

sys.setrecursionlimit(10 ** 9)


def main():
    A, B = MAP()
    print("Yes" if A != 2 and B != 2 else "No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
import queue
import bisect
import heapq
import time
import itertools

mod = int(1e9+7)

def swap(a,b):
    return (b,a)

def my_round(a,dig=0):
    p = 10 ** dig
    return (a * p * 2 + 1) // 2 / p

def gcd(a,b): #最大公約数
    if (a<b):
        a,b = swap(a,b)
    if (b==0):
        return a
    else:
        return gcd(b,a%b)

def lcm(a,b): #最小公倍数
    return a/gcd(a,b)*b

def divisors(a): # 約数列挙
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): #素数判定
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): #素数列挙
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

def prime_fact(a): #素因数分解
    sqrt = math.sqrt(a)
    res = []
    i = 2
    if is_prime(a):
        res.append(a)
    else:
        while a!=1:
            while a%i==0:
                res.append(i)
                a //= i
            i += 1
    return res

def main():
    a,b = map(int,input().split())
    if a % 2 == 0 or b % 2 == 0:
        print('No')
    else:
        print('Yes')
    return

if __name__=='__main__':
    main()

Submission status: Accepted

Solution code:
def main():
    from sys import stdin
    r = stdin.readline()[:-1]
    #n = int(stdin.readline()[:-1])   
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]

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

if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
print('Yes' if '2' not in input().split() else 'No')

Submission status: Accepted

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

result = 'No'
for i in range(3):
    if (A * B * i) % 2 == 1:
        result = 'Yes'
print(result)

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"[not A*B&1::2])

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

Submission status: Accepted

Solution code:
import sys

a, b = map(int, sys.stdin.readline().split())

def main():
    return 'Yes' if a * b & 1 else 'No'

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if ans == 1 or ans == 3 or ans == 9:
  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(lambda x: int(x), input().split())

if (a == 1 or a ==3) and (b == 1 or b ==3):
  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 != 0 else "No")

Submission status: Accepted

Solution code:
A,B=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
if A*B%2==0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
class ABC109Solver():
    def __init__(self):
        self.a = int()
        self.b = int()
    def input(self, a, b):
        self.a = a
        self.b = b
    def solve(self):
        # return 'Yes'
        # return 'No' if self.b%2 == 0 else 'Yes'
        return 'No' if self.a%2 == 0 or self.b%2 == 0 else 'Yes'

vals = input().split(' ')
a, b = int(vals[0]), int(vals[1])
solver = ABC109Solver()
solver.input(a,b)
 
print( solver.solve() )

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 bisect
import cmath
import heapq
import itertools
import math
import operator
import os
import re
import string
import sys
from collections import Counter, deque, defaultdict
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from functools import lru_cache, reduce
from operator import itemgetter, mul, add, xor

import numpy as np

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
# MOD = 998244353


a, b = list(map(int, sys.stdin.buffer.readline().split()))

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

Submission status: Accepted

Solution code:
# coding: utf-8

ans = "Yes" if len([j for j in [int(i) for i in input().rstrip().split(" ")] if j % 2 == 0]) == 0 else "No"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

Solution code:
import sys
import itertools
input = sys.stdin.readline
A,B = [int(i) for i in input().split()]
ans = "No"
if A % 2 == 1 and B % 2 == 1 :
    ans = "Yes"
print(ans)

Submission status: Accepted

Solution code:
import sys
import itertools
import numpy
input = sys.stdin.readline
A,B = [int(i) for i in input().split()]
ans = "No"
if A % 2 == 1 and B % 2 == 1 :
    ans = "Yes"
print(ans)

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

print(ans)

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

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

else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b=INTM()
    if (a*b)%2==0:
        print('No')
    else:
        print('Yes')
if __name__ == '__main__':
    do()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]
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==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:
a, b = map(int,input().split())
if (a == 1 and b == 2) or (a == 2 and b == 1) or (a == 2 and b == 2) or (a == 3 and b == 2) or (a == 2 and b == 3):
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

else:
    print('No')

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
A, B = [int(x) for x in input().split()]
if A != 2 and B != 2:
    print("Yes")
else:
    print("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 = list(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()))
ans="Yes"
if A % 2 == 0 or B % 2 == 0:
  ans = "No"
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
for i in range(1,4):
  if (a*b*i)%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("No" if a==2 or b==2 else "Yes")