Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
    int c, i, l, k;
    int H[1000],W[1000];
    for(c = 1; ; c++ ){
        scanf("%d %d", &H[c], &W[c]);
        if(H[c] == 0)   break;
    }
    c--;
    for(k = 1; k <= c; k++ ){
        for(i = 1; i <= H[k]; i++ ){
            if(i % 2 == 0){
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf("#");
                    } else {
                        printf(".");
                    }
                }
            } else {
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf(".");
                    } else {
                        printf("#");
                    }
                }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -8032(%rbp)
.L4:
	leaq	-4016(%rbp), %rdx
	movl	-8032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-8016(%rbp), %rcx
	movl	-8032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-8032(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L22
	addl	$1, -8032(%rbp)
	jmp	.L4
.L22:
	nop
	subl	$1, -8032(%rbp)
	movl	$1, -8020(%rbp)
	jmp	.L5
.L18:
	movl	$1, -8028(%rbp)
	jmp	.L6
.L17:
	movl	-8028(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L7
	movl	$1, -8024(%rbp)
	jmp	.L8
.L11:
	movl	-8024(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L9
	movl	$35, %edi
	call	putchar@PLT
	jmp	.L10
.L9:
	movl	$46, %edi
	call	putchar@PLT
.L10:
	addl	$1, -8024(%rbp)
.L8:
	movl	-8020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, -8024(%rbp)
	jle	.L11
	jmp	.L12
.L7:
	movl	$1, -8024(%rbp)
	jmp	.L13
.L16:
	movl	-8024(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L14
	movl	$46, %edi
	call	putchar@PLT
	jmp	.L15
.L14:
	movl	$35, %edi
	call	putchar@PLT
.L15:
	addl	$1, -8024(%rbp)
.L13:
	movl	-8020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, -8024(%rbp)
	jle	.L16
.L12:
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -8028(%rbp)
.L6:
	movl	-8020(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	cmpl	%eax, -8028(%rbp)
	jle	.L17
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -8020(%rbp)
.L5:
	movl	-8020(%rbp), %eax
	cmpl	-8032(%rbp), %eax
	jle	.L18
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3944, %rsp
	.cfi_def_cfa_offset 8096
	movl	$1, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	4016(%rsp), %rax
	leaq	20(%rsp), %r13
	movq	%rax, 8(%rsp)
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rax
	movq	%rbp, %r15
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movl	%ebx, %r12d
	addq	$4, %rbp
	leaq	(%rax,%rbx,4), %rdx
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	(%r15), %edx
	testl	%edx, %edx
	jne	.L2
	cmpl	$1, %r12d
	je	.L3
	leal	-2(%r12), %eax
	leaq	4020(%rsp), %rbp
	leaq	4024(%rsp,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	0(%r13), %eax
	movl	$1, %r12d
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	0(%rbp), %eax
	testb	$1, %r12b
	je	.L5
	movl	$1, %ebx
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %bl
	jne	.L13
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	0(%rbp), %ebx
	jle	.L6
.L9:
	movl	$10, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, 0(%r13)
	jge	.L7
.L8:
	movl	$10, %edi
	addq	$4, %rbp
	addq	$4, %r13
	call	putchar@PLT
	cmpq	%r14, %rbp
	jne	.L4
.L3:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$8040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%eax, %eax
	jle	.L9
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %bl
	jne	.L10
.L29:
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jl	.L9
	testb	$1, %bl
	je	.L29
.L10:
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L12
	jmp	.L9
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3944, %rsp
	.cfi_def_cfa_offset 8096
	movl	$1, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	4016(%rsp), %rax
	leaq	20(%rsp), %r13
	movq	%rax, 8(%rsp)
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rax
	movq	%rbp, %r15
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movl	%ebx, %r12d
	addq	$4, %rbp
	leaq	(%rax,%rbx,4), %rdx
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	(%r15), %edx
	testl	%edx, %edx
	jne	.L2
	cmpl	$1, %r12d
	je	.L3
	leal	-2(%r12), %eax
	leaq	4020(%rsp), %rbp
	leaq	4024(%rsp,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	0(%r13), %eax
	movl	$1, %r12d
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	0(%rbp), %eax
	testb	$1, %r12b
	je	.L5
	movl	$1, %ebx
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %bl
	jne	.L13
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	0(%rbp), %ebx
	jle	.L6
.L9:
	movl	$10, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, 0(%r13)
	jge	.L7
.L8:
	movl	$10, %edi
	addq	$4, %rbp
	addq	$4, %r13
	call	putchar@PLT
	cmpq	%r14, %rbp
	jne	.L4
.L3:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$8040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%eax, %eax
	jle	.L9
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %bl
	jne	.L10
.L29:
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jl	.L9
	testb	$1, %bl
	je	.L29
.L10:
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L12
	jmp	.L9
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>

int main(void){
    int c, i, l, k;
    int H[1000],W[1000];
    for(c = 1; ; c++ ){
        scanf("%d %d", &H[c], &W[c]);
        if(H[c] == 0)   break;
    }
    c--;
    for(k = 1; k <= c; k++ ){
        for(i = 1; i <= H[k]; i++ ){
            if(i % 2 == 0){
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf("#");
                    } else {
                        printf(".");
                    }
                }
            } else {
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf(".");
                    } else {
                        printf("#");
                    }
                }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}

3 4
5 6
3 3
2 2
1 0
0 0
 3 7
5 6
3 3
2 2
1 0
0 0
 3 7
5 6
3 0
2 2
1 0
0 0
 6 7
5 6
3 0
2 2
1 0
0 0
 6 11
5 6
3 0
2 2
1 0
0 0
 3 4
5 6
2 3
2 2
1 1
0 0
 3 4
5 6
3 3
2 4
1 0
0 0
 3 7
5 6
4 3
2 2
1 0
0 0
 3 7
5 5
3 0
2 2
1 0
0 0
 6 7
5 6
3 0
0 2
1 0
0 0

#.#.
.#.#
#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.
#.#

#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.
#.#

#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.





#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#
.#.#.#.
#.#.#.#
.#.#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.





#.
.#



 #.#.#.#.#.#
.#.#.#.#.#.
#.#.#.#.#.#
.#.#.#.#.#.
#.#.#.#.#.#
.#.#.#.#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.





#.
.#



 #.#.
.#.#
#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.

#.
.#

#

 #.#.
.#.#
#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.
#.#

#.#.
.#.#



 #.#.#.#
.#.#.#.
#.#.#.#

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.
#.#
.#.

#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#

#.#.#
.#.#.
#.#.#
.#.#.
#.#.#





#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#
.#.#.#.
#.#.#.#
.#.#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.






Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
    int c, i, l, k;
    int H[1000],W[1000];
    for(c = 1; ; c++ ){
        scanf("%d %d", &H[c], &W[c]);
        if(H[c] == 0)   break;
    }
    c--;
    for(k = 1; k <= c; k++ ){
        for(i = 1; i <= H[k]; i++ ){
            if(i % 2 == 0){
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf("#");
                    } else {
                        printf(".");
                    }
                }
            } else {
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf(".");
                    } else {
                        printf("#");
                    }
                }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -8032(%rbp)
.L4:
	leaq	-4016(%rbp), %rdx
	movl	-8032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-8016(%rbp), %rcx
	movl	-8032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-8032(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L22
	addl	$1, -8032(%rbp)
	jmp	.L4
.L22:
	nop
	subl	$1, -8032(%rbp)
	movl	$1, -8020(%rbp)
	jmp	.L5
.L18:
	movl	$1, -8028(%rbp)
	jmp	.L6
.L17:
	movl	-8028(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L7
	movl	$1, -8024(%rbp)
	jmp	.L8
.L11:
	movl	-8024(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L9
	movl	$35, %edi
	call	putchar@PLT
	jmp	.L10
.L9:
	movl	$46, %edi
	call	putchar@PLT
.L10:
	addl	$1, -8024(%rbp)
.L8:
	movl	-8020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, -8024(%rbp)
	jle	.L11
	jmp	.L12
.L7:
	movl	$1, -8024(%rbp)
	jmp	.L13
.L16:
	movl	-8024(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L14
	movl	$46, %edi
	call	putchar@PLT
	jmp	.L15
.L14:
	movl	$35, %edi
	call	putchar@PLT
.L15:
	addl	$1, -8024(%rbp)
.L13:
	movl	-8020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, -8024(%rbp)
	jle	.L16
.L12:
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -8028(%rbp)
.L6:
	movl	-8020(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	cmpl	%eax, -8028(%rbp)
	jle	.L17
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -8020(%rbp)
.L5:
	movl	-8020(%rbp), %eax
	cmpl	-8032(%rbp), %eax
	jle	.L18
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -8032(%rbp)
.L4:
	leaq	-4016(%rbp), %rdx
	movl	-8032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-8016(%rbp), %rcx
	movl	-8032(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-8032(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L22
	addl	$1, -8032(%rbp)
	jmp	.L4
.L22:
	nop
	subl	$1, -8032(%rbp)
	movl	$1, -8020(%rbp)
	jmp	.L5
.L18:
	movl	$1, -8028(%rbp)
	jmp	.L6
.L17:
	movl	-8028(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L7
	movl	$1, -8024(%rbp)
	jmp	.L8
.L11:
	movl	-8024(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L9
	movl	$35, %edi
	call	putchar@PLT
	jmp	.L10
.L9:
	movl	$46, %edi
	call	putchar@PLT
.L10:
	addl	$1, -8024(%rbp)
.L8:
	movl	-8020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, -8024(%rbp)
	jle	.L11
	jmp	.L12
.L7:
	movl	$1, -8024(%rbp)
	jmp	.L13
.L16:
	movl	-8024(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L14
	movl	$46, %edi
	call	putchar@PLT
	jmp	.L15
.L14:
	movl	$35, %edi
	call	putchar@PLT
.L15:
	addl	$1, -8024(%rbp)
.L13:
	movl	-8020(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, -8024(%rbp)
	jle	.L16
.L12:
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -8028(%rbp)
.L6:
	movl	-8020(%rbp), %eax
	cltq
	movl	-8016(%rbp,%rax,4), %eax
	cmpl	%eax, -8028(%rbp)
	jle	.L17
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -8020(%rbp)
.L5:
	movl	-8020(%rbp), %eax
	cmpl	-8032(%rbp), %eax
	jle	.L18
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
