#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, long long *, ...);
int main(void) {
  long long t, m, n;
  scanf("%lld", &t);
  while (t--) {
    scanf("%lld%lld", &n, &m);
    if (n % 2 == 1 && m % 2 == 1)
      printf("No\n");
    else
      printf("Yes\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xece(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x10(%rbp)
cmp    $0x0,%rax
je     11c2 <main+0xa2>
lea    0xe9f(%rip),%rdi
lea    -0x20(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x20(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x1,%rdx
jne    11b1 <main+0x91>
mov    -0x18(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x1,%rdx
jne    11b1 <main+0x91>
lea    0xe62(%rip),%rdi
call   1030 <printf@plt>
jmp    11bd <main+0x9d>
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
jmp    1141 <main+0x21>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x20,%rsp
lea    0xed0(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
subq   $0x1,0x8(%rsp)
jae    1158 <main+0x38>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
lea    0xea1(%rip),%r14
lea    0x10(%rsp),%r15
lea    0x18(%rsp),%rbx
lea    0xe9d(%rip),%r12
lea    0xe92(%rip),%r13
jmp    1190 <main+0x70>
nopl   0x0(%rax)
mov    %r13,%rdi
call   1030 <puts@plt>
subq   $0x1,0x8(%rsp)
jb     1148 <main+0x28>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x10(%rsp),%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
add    %rax,%rcx
and    $0xfffffffffffffffe,%rcx
sub    %rcx,%rax
cmp    $0x1,%rax
jne    1180 <main+0x60>
mov    0x18(%rsp),%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
add    %rax,%rcx
and    $0xfffffffffffffffe,%rcx
sub    %rcx,%rax
mov    %r12,%rdi
cmp    $0x1,%rax
jne    1180 <main+0x60>
jmp    1183 <main+0x63>

LLVM IR (-O0):
@.str = [5 x i8] c"%lld\00"
@.str.1 = [9 x i8] c"%lld%lld\00"
@.str.2 = [4 x i8] c"No\0A\00"
@.str.3 = [5 x i8] c"Yes\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
store i32 0, i32* %1
%5 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %2)
br label %6
6: ; preds = %23, %0
%7 = load i64, i64* %2
%8 = add nsw i64 %7, -1
store i64 %8, i64* %2
%9 = icmp ne i64 %7, 0
br i1 %9, label %10, label %24
10: ; preds = %6
%11 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i64* %4, i64* %3)
%12 = load i64, i64* %4
%13 = srem i64 %12, 2
%14 = icmp eq i64 %13, 1
br i1 %14, label %15, label %21
15: ; preds = %10
%16 = load i64, i64* %3
%17 = srem i64 %16, 2
%18 = icmp eq i64 %17, 1
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %23
21: ; preds = %15, %10
%22 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %23
23: ; preds = %21, %19
br label %6
24: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%lld\00"
@.str.1 = [9 x i8] c"%lld%lld\00"
@str = [4 x i8] c"Yes\00"
@str.4 = [3 x i8] c"No\00"
define i32 @main() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = bitcast i64* %1 to i8*
%5 = bitcast i64* %2 to i8*
%6 = bitcast i64* %3 to i8*
%7 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%8 = load i64, i64* %1
%9 = add nsw i64 %8, -1
store i64 %9, i64* %1
%10 = icmp eq i64 %8, 0
br i1 %10, label %27, label %11
11: ; preds = %0, %21
%12 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i64* %3, i64* %2)
%13 = load i64, i64* %3
%14 = srem i64 %13, 2
%15 = icmp eq i64 %14, 1
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i64, i64* %2
%18 = srem i64 %17, 2
%19 = icmp eq i64 %18, 1
br i1 %19, label %21, label %20
20: ; preds = %16, %11
br label %21
21: ; preds = %16, %20
%22 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0), %20 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.4, i64 0, i64 0), %16 ]
%23 = call i32 @puts(i8* dereferenceable(1) %22)
%24 = load i64, i64* %1
%25 = add nsw i64 %24, -1
store i64 %25, i64* %1
%26 = icmp eq i64 %24, 0
br i1 %26, label %27, label %11
27: ; preds = %21, %0
ret i32 0
}