#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 */
scalar_t__ checkit(int **, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ read(int **, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n, mat[70][2];
  scanf("%d", &n);
  read(mat, n);
  if (checkit(mat, n))
    printf("yes");
  else
    printf("no");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea7(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
lea    -0x240(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1050 <read@plt>
lea    -0x240(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1030 <checkit@plt>
cmp    $0x0,%rax
je     119b <main+0x5b>
lea    0xe72(%rip),%rdi
call   1040 <printf@plt>
jmp    11a7 <main+0x67>
lea    0xe65(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x240,%rsp
lea    0xeb1(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1060 <scanf@plt>
mov    0xc(%rsp),%esi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <read@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
call   1030 <checkit@plt>
test   %rax,%rax
lea    0xe87(%rip),%rax
lea    0xe7c(%rip),%rdi
cmove  %rax,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x240,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"yes\00"
@.str.2 = [3 x i8] c"no\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [70 x [2 x i32]]
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%5 = getelementptr inbounds [70 x [2 x i32]], [70 x [2 x i32]]* %3, i64 0, i64 0
%6 = bitcast [2 x i32]* %5 to i32**
%7 = load i32, i32* %2
%8 = call i32 @read(i32** %6, i32 %7)
%9 = getelementptr inbounds [70 x [2 x i32]], [70 x [2 x i32]]* %3, i64 0, i64 0
%10 = bitcast [2 x i32]* %9 to i32**
%11 = load i32, i32* %2
%12 = call i64 @checkit(i32** %10, i32 %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %18
16: ; preds = %0
%17 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"yes\00"
@.str.2 = [3 x i8] c"no\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [70 x [2 x i32]]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [70 x [2 x i32]]* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = bitcast [70 x [2 x i32]]* %2 to i32**
%7 = load i32, i32* %1
%8 = call i32 @read(i32** %6, i32 %7)
%9 = load i32, i32* %1
%10 = call i64 @checkit(i32** %6, i32 %9)
%11 = icmp eq i64 %10, 0
%12 = select i1 %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%13 = call i32 @printf(i8* dereferenceable(1) %12)
ret i32 0
}