#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 EXIT_SUCCESS;
int /*<<< orphan*/ godelito(int, char **);
int /*<<< orphan*/ printf(char *, char *);
scalar_t__ scanf(char *, int *);
int main(int argc, char **argv) {
  char g[40][100000];
  godelito(40, g);
  int n;
  while (scanf("%d", &n) != EOF) {
    printf("%s\n", g[n - 1]);
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3d0920,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x3d0910(%rbp),%rsi
mov    $0x28,%edi
call   1040 <godelito@plt>
lea    0xe9f(%rip),%rdi
lea    -0x3d0914(%rbp),%rsi
call   1050 <scanf@plt>
mov    0x2e74(%rip),%rcx
cmp    (%rcx),%rax
je     11aa <main+0x7a>
mov    -0x3d0914(%rbp),%eax
sub    $0x1,%eax
cltq
lea    -0x3d0910(%rbp),%rsi
imul   $0x186a0,%rax,%rax
add    %rax,%rsi
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
jmp    115a <main+0x2a>
mov    0x2e27(%rip),%rax
mov    (%rax),%eax
add    $0x3d0920,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x3d0910,%rsp
lea    0x10(%rsp),%r14
mov    $0x28,%edi
mov    %r14,%rsi
call   1040 <godelito@plt>
lea    0xea7(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x2e7e(%rip),%r13
cmp    0x0(%r13),%rax
je     11c0 <main+0x90>
lea    0xe8c(%rip),%r15
lea    0xe82(%rip),%r12
lea    0xc(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movslq 0xc(%rsp),%rax
imul   $0x186a0,%rax,%rax
lea    (%rax,%r14,1),%rsi
add    $0xfffffffffffe7960,%rsi
mov    %r15,%rdi
call   1030 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
cmp    0x0(%r13),%rax
jne    1190 <main+0x60>
mov    0x2e11(%rip),%rax
mov    (%rax),%eax
add    $0x3d0910,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"%s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [40 x [100000 x i8]]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = getelementptr inbounds [40 x [100000 x i8]], [40 x [100000 x i8]]* %6, i64 0, i64 0
%9 = bitcast [100000 x i8]* %8 to i8**
%10 = call i32 @godelito(i32 40, i8** %9)
br label %11
11: ; preds = %15, %2
%12 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
%13 = load i64, i64* @EOF
%14 = icmp ne i64 %12, %13
br i1 %14, label %15, label %22
15: ; preds = %11
%16 = load i32, i32* %7
%17 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [40 x [100000 x i8]], [40 x [100000 x i8]]* %6, i64 0, i64 %18
%20 = getelementptr inbounds [100000 x i8], [100000 x i8]* %19, i64 0, i64 0
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %20)
br label %11
22: ; preds = %11
%23 = load i32, i32* @EXIT_SUCCESS
ret i32 %23
}

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