#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__ EOF;
int /*<<< orphan*/ printf(char *, int);
scalar_t__ scanf(char *, int *);
int main() {
  int num[20], index[10], i, max;
  while (scanf("%d", &num[0]) != EOF) {
    for (i = 1; i < 20; i++)
      scanf("%d", &num[i]);
    for (i = 0; i < 10; i++)
      index[i] = 0;
    for (i = 0; i < 20; i++)
      index[num[i] - 1]++;
    max = 0;
    for (i = 0; i < 10; i++) {
      if (index[i] > index[max])
        max = i;
      else if (index[i] == index[max]) {
        if (i <= max)
          max = i;
      }
    }
    printf("%d\n", max + 1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x60(%rbp),%rsi
lea    0xec3(%rip),%rdi
call   1040 <scanf@plt>
mov    0x2e9f(%rip),%rcx
cmp    (%rcx),%rax
je     12f5 <main+0x1d5>
movl   $0x1,-0x94(%rbp)
cmpl   $0x14,-0x94(%rbp)
jge    119b <main+0x7b>
movslq -0x94(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe7e(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    115c <main+0x3c>
movl   $0x0,-0x94(%rbp)
cmpl   $0xa,-0x94(%rbp)
jge    11d8 <main+0xb8>
movslq -0x94(%rbp),%rax
movl   $0x0,-0x90(%rbp,%rax,4)
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    11a5 <main+0x85>
movl   $0x0,-0x94(%rbp)
cmpl   $0x14,-0x94(%rbp)
jge    1224 <main+0x104>
movslq -0x94(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%eax
sub    $0x1,%eax
cltq
mov    -0x90(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x90(%rbp,%rax,4)
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    11e2 <main+0xc2>
movl   $0x0,-0x98(%rbp)
movl   $0x0,-0x94(%rbp)
cmpl   $0xa,-0x94(%rbp)
jge    12db <main+0x1bb>
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%eax
movslq -0x98(%rbp),%rcx
cmp    -0x90(%rbp,%rcx,4),%eax
jle    1278 <main+0x158>
mov    -0x94(%rbp),%eax
mov    %eax,-0x98(%rbp)
jmp    12c2 <main+0x1a2>
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%eax
movslq -0x98(%rbp),%rcx
cmp    -0x90(%rbp,%rcx,4),%eax
jne    12bd <main+0x19d>
mov    -0x94(%rbp),%eax
cmp    -0x98(%rbp),%eax
jg     12b8 <main+0x198>
mov    -0x94(%rbp),%eax
mov    %eax,-0x98(%rbp)
jmp    12bd <main+0x19d>
jmp    12c2 <main+0x1a2>
jmp    12c7 <main+0x1a7>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1238 <main+0x118>
mov    -0x98(%rbp),%esi
add    $0x1,%esi
lea    0xd18(%rip),%rdi
call   1030 <printf@plt>
jmp    1132 <main+0x12>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
lea    0xec8(%rip),%rdi
lea    0x30(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x2e9f(%rip),%rcx
cmp    (%rcx),%rax
je     135c <main+0x23c>
lea    0xea7(%rip),%r15
mov    $0x7,%r14d
mov    $0x8,%ebp
mov    $0xa,%ebx
lea    0xe93(%rip),%r12
lea    0x30(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r15,%rdi
lea    0x34(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x38(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x3c(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x40(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x44(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x48(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x4c(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x50(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x54(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x58(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x5c(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x60(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x64(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x68(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x6c(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x70(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x74(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x78(%rsp),%rsi
call   1040 <scanf@plt>
mov    %r15,%rdi
lea    0x7c(%rsp),%rsi
call   1040 <scanf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
mov    $0x1,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq 0x2c(%rsp,%rax,4),%rcx
addl   $0x1,-0x4(%rsp,%rcx,4)
movslq 0x30(%rsp,%rax,4),%rcx
addl   $0x1,-0x4(%rsp,%rcx,4)
add    $0x2,%rax
cmp    $0x15,%rax
jne    12a0 <main+0x180>
mov    0x4(%rsp),%ecx
xor    %eax,%eax
cmp    (%rsp),%ecx
mov    0x8(%rsp),%ecx
setg   %al
cmp    (%rsp,%rax,4),%ecx
mov    $0x2,%ecx
cmovg  %ecx,%eax
mov    0xc(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x3,%ecx
cmovg  %ecx,%eax
mov    0x10(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x4,%ecx
cmovg  %ecx,%eax
mov    0x14(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x5,%ecx
cmovg  %ecx,%eax
mov    0x18(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x6,%ecx
cmovg  %ecx,%eax
mov    0x1c(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
cmovg  %r14d,%eax
mov    0x20(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
cmovg  %ebp,%eax
mov    0x24(%rsp),%ecx
mov    %eax,%esi
add    $0x1,%esi
cmp    (%rsp,%rax,4),%ecx
cmovg  %ebx,%esi
mov    %r12,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0x2c95(%rip),%rcx
cmp    (%rcx),%rax
jne    1180 <main+0x60>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i32]
%3 = alloca [10 x i32]
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
br label %6
6: ; preds = %89, %0
%7 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 0
%8 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
%9 = load i64, i64* @EOF
%10 = icmp ne i64 %8, %9
br i1 %10, label %11, label %93
11: ; preds = %6
store i32 1, i32* %4
br label %12
12: ; preds = %20, %11
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 20
br i1 %14, label %15, label %23
15: ; preds = %12
%16 = load i32, i32* %4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 %17
%19 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %18)
br label %20
20: ; preds = %15
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 1
store i32 %22, i32* %4
br label %12
23: ; preds = %12
store i32 0, i32* %4
br label %24
24: ; preds = %31, %23
%25 = load i32, i32* %4
%26 = icmp slt i32 %25, 10
br i1 %26, label %27, label %34
27: ; preds = %24
%28 = load i32, i32* %4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %29
store i32 0, i32* %30
br label %31
31: ; preds = %27
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 1
store i32 %33, i32* %4
br label %24
34: ; preds = %24
store i32 0, i32* %4
br label %35
35: ; preds = %48, %34
%36 = load i32, i32* %4
%37 = icmp slt i32 %36, 20
br i1 %37, label %38, label %51
38: ; preds = %35
%39 = load i32, i32* %4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 %40
%42 = load i32, i32* %41
%43 = sub nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = add nsw i32 %46, 1
store i32 %47, i32* %45
br label %48
48: ; preds = %38
%49 = load i32, i32* %4
%50 = add nsw i32 %49, 1
store i32 %50, i32* %4
br label %35
51: ; preds = %35
store i32 0, i32* %5
store i32 0, i32* %4
br label %52
52: ; preds = %86, %51
%53 = load i32, i32* %4
%54 = icmp slt i32 %53, 10
br i1 %54, label %55, label %89
55: ; preds = %52
%56 = load i32, i32* %4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %57
%59 = load i32, i32* %58
%60 = load i32, i32* %5
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = icmp sgt i32 %59, %63
br i1 %64, label %65, label %67
65: ; preds = %55
%66 = load i32, i32* %4
store i32 %66, i32* %5
br label %85
67: ; preds = %55
%68 = load i32, i32* %4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %69
%71 = load i32, i32* %70
%72 = load i32, i32* %5
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = icmp eq i32 %71, %75
br i1 %76, label %77, label %84
77: ; preds = %67
%78 = load i32, i32* %4
%79 = load i32, i32* %5
%80 = icmp sle i32 %78, %79
br i1 %80, label %81, label %83
81: ; preds = %77
%82 = load i32, i32* %4
store i32 %82, i32* %5
br label %83
83: ; preds = %81, %77
br label %84
84: ; preds = %83, %67
br label %85
85: ; preds = %84, %65
br label %86
86: ; preds = %85
%87 = load i32, i32* %4
%88 = add nsw i32 %87, 1
store i32 %88, i32* %4
br label %52
89: ; preds = %52
%90 = load i32, i32* %5
%91 = add nsw i32 %90, 1
%92 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %91)
br label %6
93: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [20 x i32]
%2 = alloca [10 x i32]
%3 = bitcast [10 x i32]* %2 to i8*
%4 = bitcast [20 x i32]* %1 to i8*
%5 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 0
%6 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%7 = load i64, i64* @EOF
%8 = icmp eq i64 %6, %7
br i1 %8, label %136, label %9
9: ; preds = %0
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
%11 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 1
%12 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 2
%13 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 3
%14 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 4
%15 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 5
%16 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 6
%17 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 7
%18 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 8
%19 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 9
%20 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 10
%21 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 11
%22 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 12
%23 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 13
%24 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 14
%25 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 15
%26 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 16
%27 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 17
%28 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 18
%29 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 19
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
%32 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 3
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 4
%34 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 5
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 6
%36 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
%37 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 8
%38 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
br label %39
39: ; preds = %9, %78
%40 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %11)
%41 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %12)
%42 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %13)
%43 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %14)
%44 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %15)
%45 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %16)
%46 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %17)
%47 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %18)
%48 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %19)
%49 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %20)
%50 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %21)
%51 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %22)
%52 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %23)
%53 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %24)
%54 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %25)
%55 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %26)
%56 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %27)
%57 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %28)
%58 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %29)
br label %59
59: ; preds = %59, %39
%60 = phi i64 [ 0, %39 ], [ %76, %59 ]
%61 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = add nsw i32 %62, -1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %64
%66 = load i32, i32* %65
%67 = add nsw i32 %66, 1
store i32 %67, i32* %65
%68 = or i64 %60, 1
%69 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 %68
%70 = load i32, i32* %69
%71 = add nsw i32 %70, -1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %72
%74 = load i32, i32* %73
%75 = add nsw i32 %74, 1
store i32 %75, i32* %73
%76 = add nuw nsw i64 %60, 2
%77 = icmp eq i64 %76, 20
br i1 %77, label %78, label %59
78: ; preds = %59
%79 = load i32, i32* %10
%80 = load i32, i32* %30
%81 = icmp sgt i32 %79, %80
%82 = zext i1 %81 to i32
%83 = load i32, i32* %31
%84 = zext i1 %81 to i64
%85 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %84
%86 = load i32, i32* %85
%87 = icmp sgt i32 %83, %86
%88 = select i1 %87, i32 2, i32 %82
%89 = load i32, i32* %32
%90 = zext i32 %88 to i64
%91 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = icmp sgt i32 %89, %92
%94 = select i1 %93, i32 3, i32 %88
%95 = load i32, i32* %33
%96 = zext i32 %94 to i64
%97 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %96
%98 = load i32, i32* %97
%99 = icmp sgt i32 %95, %98
%100 = select i1 %99, i32 4, i32 %94
%101 = load i32, i32* %34
%102 = zext i32 %100 to i64
%103 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %102
%104 = load i32, i32* %103
%105 = icmp sgt i32 %101, %104
%106 = select i1 %105, i32 5, i32 %100
%107 = load i32, i32* %35
%108 = zext i32 %106 to i64
%109 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %108
%110 = load i32, i32* %109
%111 = icmp sgt i32 %107, %110
%112 = select i1 %111, i32 6, i32 %106
%113 = load i32, i32* %36
%114 = zext i32 %112 to i64
%115 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %114
%116 = load i32, i32* %115
%117 = icmp sgt i32 %113, %116
%118 = select i1 %117, i32 7, i32 %112
%119 = load i32, i32* %37
%120 = zext i32 %118 to i64
%121 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %120
%122 = load i32, i32* %121
%123 = icmp sgt i32 %119, %122
%124 = select i1 %123, i32 8, i32 %118
%125 = load i32, i32* %38
%126 = zext i32 %124 to i64
%127 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %126
%128 = load i32, i32* %127
%129 = icmp sgt i32 %125, %128
%130 = add nuw nsw i32 %124, 1
%131 = select i1 %129, i32 10, i32 %130
%132 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %131)
%133 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%134 = load i64, i64* @EOF
%135 = icmp eq i64 %133, %134
br i1 %135, label %136, label %39
136: ; preds = %78, %0
ret i32 0
}