int main() {
  for (int a = 0, max; scanf("%d", &max), a <= max; a++) {
    char s[200];
    gets(s);
    int size = sizeof(s) - 1;
    while (s[a] != "\0") {
      for (int a = 0; a <= size / 2; a++) {
        if (a % 2 == 0) {
          printf("%s", s);
        }
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xeb0(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     122d <main+0xfd>
lea    -0xe0(%rbp),%rdi
mov    $0x0,%al
call   1040 <gets@plt>
movl   $0xc7,-0xe4(%rbp)
movslq -0x8(%rbp),%rax
movsbq -0xe0(%rbp,%rax,1),%rax
ff ff
lea    0xe73(%rip),%rcx
cmp    %rcx,%rax
je     121a <main+0xea>
movl   $0x0,-0xe8(%rbp)
mov    -0xe8(%rbp),%eax
mov    %eax,-0xec(%rbp)
mov    -0xe4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xec(%rbp),%eax
cmp    %ecx,%eax
jg     1215 <main+0xe5>
mov    -0xe8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11fc <main+0xcc>
lea    -0xe0(%rbp),%rsi
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1201 <main+0xd1>
mov    -0xe8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    11a6 <main+0x76>
jmp    117f <main+0x4f>
jmp    121f <main+0xef>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1149 <main+0x19>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
lea    0xeb8(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
js     11f3 <main+0xc3>
lea    0x10(%rsp),%r12
lea    0xe9b(%rip),%r13
lea    0xc(%rsp),%r15
lea    0xe8c(%rip),%rbx
xor    %ebp,%ebp
jmp    11a2 <main+0x72>
nopl   0x0(%rax,%rax,1)
lea    0x1(%rbp),%r14
lea    0xe75(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movslq 0xc(%rsp),%rax
cmp    %rax,%rbp
mov    %r14,%rbp
jge    11f3 <main+0xc3>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <gets@plt>
movsbq 0x10(%rsp,%rbp,1),%rax
cmp    %r13,%rax
je     1180 <main+0x50>
xor    %r14d,%r14d
jmp    11ca <main+0x9a>
nopl   0x0(%rax)
add    $0x1,%r14d
cmp    $0x64,%r14d
je     11e0 <main+0xb0>
test   $0x1,%r14b
jne    11c0 <main+0x90>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    11c0 <main+0x90>
nop
movsbq 0x10(%rsp,%rbp,1),%rax
mov    $0x0,%r14d
cmp    %r13,%rax
jne    11ca <main+0x9a>
jmp    1180 <main+0x50>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [2 x i8] zeroinitializer
@.str.2 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [200 x i8]
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %7
7: ; preds = %42, %0
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %45
12: ; preds = %7
%13 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @gets to i32 (i8*, ...)*)(i8* %13)
store i32 199, i32* %5
br label %15
15: ; preds = %40, %12
%16 = load i32, i32* %2
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 %17
%19 = load i8, i8* %18
%20 = sext i8 %19 to i64
%21 = inttoptr i64 %20 to i8*
%22 = icmp ne i8* %21, getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0)
br i1 %22, label %23, label %41
23: ; preds = %15
store i32 0, i32* %6
br label %24
24: ; preds = %37, %23
%25 = load i32, i32* %6
%26 = load i32, i32* %5
%27 = sdiv i32 %26, 2
%28 = icmp sle i32 %25, %27
br i1 %28, label %29, label %40
29: ; preds = %24
%30 = load i32, i32* %6
%31 = srem i32 %30, 2
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %34)
br label %36
36: ; preds = %33, %29
br label %37
37: ; preds = %36
%38 = load i32, i32* %6
%39 = add nsw i32 %38, 1
store i32 %39, i32* %6
br label %24
40: ; preds = %24
br label %15
41: ; preds = %15
br label %42
42: ; preds = %41
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
br label %7
45: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [2 x i8] zeroinitializer
@.str.2 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [200 x i8]
%3 = bitcast i32* %1 to i8*
%4 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %0
%8 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
br label %10
9: ; preds = %34, %0
ret i32 0
10: ; preds = %7, %34
%11 = phi i64 [ 0, %7 ], [ %35, %34 ]
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @gets to i32 (i8*, ...)*)(i8* %8)
%13 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 %11
%14 = load i8, i8* %13
%15 = sext i8 %14 to i64
%16 = inttoptr i64 %15 to i8*
%17 = icmp eq i8* %16, getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0)
br i1 %17, label %34, label %23
18: ; preds = %29
%19 = load i8, i8* %13
%20 = sext i8 %19 to i64
%21 = inttoptr i64 %20 to i8*
%22 = icmp eq i8* %21, getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0)
br i1 %22, label %34, label %32
23: ; preds = %10, %32
%24 = phi i32 [ %33, %32 ], [ 0, %10 ]
%25 = and i32 %24, 1
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %8)
br label %29
29: ; preds = %23, %27
%30 = add nuw nsw i32 %24, 1
%31 = icmp eq i32 %30, 100
br i1 %31, label %18, label %32
32: ; preds = %29, %18
%33 = phi i32 [ %30, %29 ], [ 0, %18 ]
br label %23
34: ; preds = %18, %10
%35 = add nuw nsw i64 %11, 1
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%37 = load i32, i32* %1
%38 = sext i32 %37 to i64
%39 = icmp slt i64 %11, %38
br i1 %39, label %10, label %9
}