#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 *, long);
int /*<<< orphan*/ scanf(char *, long *, ...);
main() {
  long data[100000][2] = {{0}, {0}};
  long N;
  scanf("%d", &N);
  for (long i = 0; i < N; i++)
    scanf("%d %d", &data[i][0], &data[i][1]);
  long M;
  scanf("%d", &M);
  long temp;
  long x, y;
  long level = 0;
  printf("%d\n", level - 1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x186a50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x186a10(%rbp),%rdi
xor    %esi,%esi
mov    $0x186a00,%edx
call   1040 <memset@plt>
lea    0xea7(%rip),%rdi
lea    -0x186a18(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movq   $0x0,-0x186a20(%rbp)
mov    -0x186a20(%rbp),%rax
cmp    -0x186a18(%rbp),%rax
jge    11dc <main+0xac>
mov    -0x186a20(%rbp),%rax
lea    -0x186a10(%rbp),%rsi
shl    $0x4,%rax
add    %rax,%rsi
mov    -0x186a20(%rbp),%rax
lea    -0x186a10(%rbp),%rdx
shl    $0x4,%rax
add    %rax,%rdx
add    $0x8,%rdx
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x186a20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x186a20(%rbp)
jmp    1175 <main+0x45>
lea    0xe20(%rip),%rdi
lea    -0x186a28(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movq   $0x0,-0x186a48(%rbp)
mov    -0x186a48(%rbp),%rsi
sub    $0x1,%rsi
lea    0xdf8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x186a50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x186a10,%rsp
lea    0x10(%rsp),%r15
mov    $0x186a00,%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
lea    0xeac(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpq   $0x0,(%rsp)
jle    119f <main+0x6f>
lea    0xe91(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x8(%r15),%rdx
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
add    $0x1,%rbx
add    $0x10,%r15
cmp    (%rsp),%rbx
jl     1180 <main+0x50>
lea    0xe5d(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xe4d(%rip),%rdi
mov    $0xffffffffffffffff,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x186a10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100000 x [2 x i64]]
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
store i32 0, i32* %1
%10 = bitcast [100000 x [2 x i64]]* %2 to i8*
%11 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64* %3)
store i64 0, i64* %4
br label %12
12: ; preds = %24, %0
%13 = load i64, i64* %4
%14 = load i64, i64* %3
%15 = icmp slt i64 %13, %14
br i1 %15, label %16, label %27
16: ; preds = %12
%17 = load i64, i64* %4
%18 = getelementptr inbounds [100000 x [2 x i64]], [100000 x [2 x i64]]* %2, i64 0, i64 %17
%19 = getelementptr inbounds [2 x i64], [2 x i64]* %18, i64 0, i64 0
%20 = load i64, i64* %4
%21 = getelementptr inbounds [100000 x [2 x i64]], [100000 x [2 x i64]]* %2, i64 0, i64 %20
%22 = getelementptr inbounds [2 x i64], [2 x i64]* %21, i64 0, i64 1
%23 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64* %19, i64* %22)
br label %24
24: ; preds = %16
%25 = load i64, i64* %4
%26 = add nsw i64 %25, 1
store i64 %26, i64* %4
br label %12
27: ; preds = %12
%28 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64* %5)
store i64 0, i64* %9
%29 = load i64, i64* %9
%30 = sub nsw i64 %29, 1
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 %30)
%32 = load i32, i32* %1
ret i32 %32
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [100000 x [2 x i64]]
%2 = alloca i64
%3 = alloca i64
%4 = bitcast [100000 x [2 x i64]]* %1 to i8*
%5 = bitcast i64* %2 to i8*
%6 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64* %2)
%7 = load i64, i64* %2
%8 = icmp sgt i64 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %13, %0
%10 = bitcast i64* %3 to i8*
%11 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64* %3)
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 -1)
ret i32 0
13: ; preds = %0, %13
%14 = phi i64 [ %18, %13 ], [ 0, %0 ]
%15 = getelementptr inbounds [100000 x [2 x i64]], [100000 x [2 x i64]]* %1, i64 0, i64 %14, i64 0
%16 = getelementptr inbounds [100000 x [2 x i64]], [100000 x [2 x i64]]* %1, i64 0, i64 %14, i64 1
%17 = call i32 (i8*, i64*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64* %15, i64* %16)
%18 = add nuw nsw i64 %14, 1
%19 = load i64, i64* %2
%20 = icmp slt i64 %18, %19
br i1 %20, label %13, label %9
}