#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);
int /*<<< orphan*/ scanf(char *, int *, ...);
int main() {
  int i = 0, qtdAtl = 0;
  int atrAtl[100000][4];
  int qtdAc = 0;
  scanf("%d", &qtdAtl);
  for (i = 0; i < qtdAtl; i++) {
    scanf("%d %d %d %d", &atrAtl[i][0], &atrAtl[i][1], &atrAtl[i][2],
          &atrAtl[i][3]);
  }
  for (i = 0; i < qtdAtl; i++) {
  }
  printf("%d\n", qtdAc);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x186a20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x186a14(%rbp)
lea    0xeb8(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11df <main+0xbf>
movslq -0x8(%rbp),%rax
lea    -0x186a10(%rbp),%rsi
shl    $0x4,%rax
add    %rax,%rsi
movslq -0x8(%rbp),%rax
lea    -0x186a10(%rbp),%rdx
shl    $0x4,%rax
add    %rax,%rdx
add    $0x4,%rdx
movslq -0x8(%rbp),%rax
lea    -0x186a10(%rbp),%rcx
shl    $0x4,%rax
add    %rax,%rcx
add    $0x8,%rcx
movslq -0x8(%rbp),%rax
lea    -0x186a10(%rbp),%r8
shl    $0x4,%rax
add    %rax,%r8
add    $0xc,%r8
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1163 <main+0x43>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1205 <main+0xe5>
jmp    11f7 <main+0xd7>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11e6 <main+0xc6>
mov    -0x186a14(%rbp),%esi
lea    0xdfa(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x186a20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x186a10,%rsp
movl   $0x0,0xc(%rsp)
lea    0xece(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    118b <main+0x6b>
lea    0x10(%rsp),%rbx
lea    0xea6(%rip),%r14
xor    %r15d,%r15d
nopl   (%rax)
lea    0x4(%rbx),%rdx
lea    0x8(%rbx),%rcx
lea    0xc(%rbx),%r8
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    $0x1,%r15
movslq 0xc(%rsp),%rax
add    $0x10,%rbx
cmp    %rax,%r15
jl     1160 <main+0x40>
lea    0xe7a(%rip),%rdi
xor    %esi,%esi
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 = [12 x i8] c"%d %d %d %d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [100000 x [4 x i32]]
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %5
%6 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
store i32 0, i32* %2
br label %7
7: ; preds = %29, %0
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %32
11: ; preds = %7
%12 = load i32, i32* %2
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [100000 x [4 x i32]], [100000 x [4 x i32]]* %4, i64 0, i64 %13
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %14, i64 0, i64 0
%16 = load i32, i32* %2
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100000 x [4 x i32]], [100000 x [4 x i32]]* %4, i64 0, i64 %17
%19 = getelementptr inbounds [4 x i32], [4 x i32]* %18, i64 0, i64 1
%20 = load i32, i32* %2
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100000 x [4 x i32]], [100000 x [4 x i32]]* %4, i64 0, i64 %21
%23 = getelementptr inbounds [4 x i32], [4 x i32]* %22, i64 0, i64 2
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [100000 x [4 x i32]], [100000 x [4 x i32]]* %4, i64 0, i64 %25
%27 = getelementptr inbounds [4 x i32], [4 x i32]* %26, i64 0, i64 3
%28 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %15, i32* %19, i32* %23, i32* %27)
br label %29
29: ; preds = %11
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 1
store i32 %31, i32* %2
br label %7
32: ; preds = %7
store i32 0, i32* %2
br label %33
33: ; preds = %38, %32
%34 = load i32, i32* %2
%35 = load i32, i32* %3
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %41
37: ; preds = %33
br label %38
38: ; preds = %37
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
store i32 %40, i32* %2
br label %33
41: ; preds = %33
%42 = load i32, i32* %5
%43 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %1
ret i32 %44
}

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