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

```c
#include<stdio.h>
#include<math.h>
int main(){
    int N;
    int a[10];
    int i;
    int odd[10]={0};
    int serial=1;
    int total=0;
    scanf("%d",&N);
    for(i=0;i<N;i++){
        scanf("%d",&a[i]);
        if(a[i]%2!=0)
            odd[i]+=1;
        if ((a[i]+1)%2!=0)
            odd[i]+=1;
        if ((a[i]-1)%2!=0)
            odd[i]+=1;
    }
    for (i=0;i<N;i++){
        serial=serial*odd[i];
    }
    total = pow(3,N)-serial;
    printf("%d\n",total);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 64(%rsp)
	movq	$0, 96(%rsp)
	movaps	%xmm0, 80(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L50:
	addl	$1, 0(%rbp)
	testb	$1, %al
	je	.L46
.L5:
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jle	.L49
.L8:
	leaq	(%r12,%rbx,4), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12,%rbx,4), %eax
	testb	$1, %al
	jne	.L50
.L46:
	addl	$1, 0(%rbp)
	testb	$1, %al
	jne	.L5
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addl	$1, 0(%rbp)
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L8
.L49:
	testl	%eax, %eax
	jle	.L12
	movl	64(%rsp), %ebx
	cmpl	$1, %eax
	je	.L2
	imull	68(%rsp), %ebx
	cmpl	$2, %eax
	je	.L2
	imull	72(%rsp), %ebx
	cmpl	$3, %eax
	je	.L2
	imull	76(%rsp), %ebx
	cmpl	$4, %eax
	je	.L2
	imull	80(%rsp), %ebx
	cmpl	$5, %eax
	je	.L2
	imull	84(%rsp), %ebx
	cmpl	$6, %eax
	je	.L2
	imull	88(%rsp), %ebx
	cmpl	$7, %eax
	je	.L2
	imull	92(%rsp), %ebx
	cmpl	$8, %eax
	je	.L2
	imull	96(%rsp), %ebx
	cmpl	$9, %eax
	je	.L2
	imull	100(%rsp), %ebx
.L2:
	pxor	%xmm1, %xmm1
	movsd	.LC1(%rip), %xmm0
	cvtsi2sdl	%eax, %xmm1
	call	pow@PLT
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	movl	$1, %edi
	cvtsi2sdl	%ebx, %xmm1
	leaq	.LC2(%rip), %rsi
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$1, %ebx
	jmp	.L2
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1074266112
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 64(%rsp)
	movq	$0, 96(%rsp)
	movaps	%xmm0, 80(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L50:
	addl	$1, 0(%rbp)
	testb	$1, %al
	je	.L46
.L5:
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jle	.L49
.L8:
	leaq	(%r12,%rbx,4), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12,%rbx,4), %eax
	testb	$1, %al
	jne	.L50
.L46:
	addl	$1, 0(%rbp)
	testb	$1, %al
	jne	.L5
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addl	$1, 0(%rbp)
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L8
.L49:
	testl	%eax, %eax
	jle	.L12
	movl	64(%rsp), %ebx
	cmpl	$1, %eax
	je	.L2
	imull	68(%rsp), %ebx
	cmpl	$2, %eax
	je	.L2
	imull	72(%rsp), %ebx
	cmpl	$3, %eax
	je	.L2
	imull	76(%rsp), %ebx
	cmpl	$4, %eax
	je	.L2
	imull	80(%rsp), %ebx
	cmpl	$5, %eax
	je	.L2
	imull	84(%rsp), %ebx
	cmpl	$6, %eax
	je	.L2
	imull	88(%rsp), %ebx
	cmpl	$7, %eax
	je	.L2
	imull	92(%rsp), %ebx
	cmpl	$8, %eax
	je	.L2
	imull	96(%rsp), %ebx
	cmpl	$9, %eax
	je	.L2
	imull	100(%rsp), %ebx
.L2:
	pxor	%xmm1, %xmm1
	movsd	.LC1(%rip), %xmm0
	cvtsi2sdl	%eax, %xmm1
	call	pow@PLT
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	movl	$1, %edi
	cvtsi2sdl	%ebx, %xmm1
	leaq	.LC2(%rip), %rsi
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$1, %ebx
	jmp	.L2
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1074266112
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 64(%rsp)
	movq	$0, 96(%rsp)
	movaps	%xmm0, 80(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L50:
	addl	$1, 0(%rbp)
	testb	$1, %al
	je	.L46
.L5:
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jle	.L49
.L8:
	leaq	(%r12,%rbx,4), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12,%rbx,4), %eax
	testb	$1, %al
	jne	.L50
.L46:
	addl	$1, 0(%rbp)
	testb	$1, %al
	jne	.L5
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addl	$1, 0(%rbp)
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L8
.L49:
	testl	%eax, %eax
	jle	.L12
	movl	64(%rsp), %ebx
	cmpl	$1, %eax
	je	.L2
	imull	68(%rsp), %ebx
	cmpl	$2, %eax
	je	.L2
	imull	72(%rsp), %ebx
	cmpl	$3, %eax
	je	.L2
	imull	76(%rsp), %ebx
	cmpl	$4, %eax
	je	.L2
	imull	80(%rsp), %ebx
	cmpl	$5, %eax
	je	.L2
	imull	84(%rsp), %ebx
	cmpl	$6, %eax
	je	.L2
	imull	88(%rsp), %ebx
	cmpl	$7, %eax
	je	.L2
	imull	92(%rsp), %ebx
	cmpl	$8, %eax
	je	.L2
	imull	96(%rsp), %ebx
	cmpl	$9, %eax
	je	.L2
	imull	100(%rsp), %ebx
.L2:
	pxor	%xmm1, %xmm1
	movsd	.LC1(%rip), %xmm0
	cvtsi2sdl	%eax, %xmm1
	call	pow@PLT
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	movl	$1, %edi
	cvtsi2sdl	%ebx, %xmm1
	leaq	.LC2(%rip), %rsi
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$1, %ebx
	jmp	.L2
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1074266112
	.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:
```
```c
#include<stdio.h>
#include<math.h>
int main(){
    int N;
    int a[10];
    int i;
    int odd[10]={0};
    int serial=1;
    int total=0;
    scanf("%d",&N);
    for(i=0;i<N;i++){
        scanf("%d",&a[i]);
        if(a[i]%2!=0)
            odd[i]+=1;
        if ((a[i]+1)%2!=0)
            odd[i]+=1;
        if ((a[i]-1)%2!=0)
            odd[i]+=1;
    }
    for (i=0;i<N;i++){
        serial=serial*odd[i];
    }
    total = pow(3,N)-serial;
    printf("%d\n",total);
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<math.h>
int main(){
    int N;
    int a[10];
    int i;
    int odd[10]={0};
    int serial=1;
    int total=0;
    scanf("%d",&N);
    for(i=0;i<N;i++){
        scanf("%d",&a[i]);
        if(a[i]%2!=0)
            odd[i]+=1;
        if ((a[i]+1)%2!=0)
            odd[i]+=1;
        if ((a[i]-1)%2!=0)
            odd[i]+=1;
    }
    for (i=0;i<N;i++){
        serial=serial*odd[i];
    }
    total = pow(3,N)-serial;
    printf("%d\n",total);
    return 0;
}```

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.
Optimized Assembly Code:

10
90 101 56 71 44 8 13 30 57 84
 2
2 4
 1
000
 3
3 3 2
 10
41 101 56 71 44 8 13 30 57 84
 2
3 6
 1
011
 3
3 2 0
 10
60 101 56 71 44 8 13 30 114 84
 3
1 1 -1

58985
 5
 1
 25
 59017
 7
 2
 23
 58921
 26

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

```c
#include<stdio.h>
#include<math.h>
int main(){
    int N;
    int a[10];
    int i;
    int odd[10]={0};
    int serial=1;
    int total=0;
    scanf("%d",&N);
    for(i=0;i<N;i++){
        scanf("%d",&a[i]);
        if(a[i]%2!=0)
            odd[i]+=1;
        if ((a[i]+1)%2!=0)
            odd[i]+=1;
        if ((a[i]-1)%2!=0)
            odd[i]+=1;
    }
    for (i=0;i<N;i++){
        serial=serial*odd[i];
    }
    total = pow(3,N)-serial;
    printf("%d\n",total);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 64(%rsp)
	movq	$0, 96(%rsp)
	movaps	%xmm0, 80(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L50:
	addl	$1, 0(%rbp)
	testb	$1, %al
	je	.L46
.L5:
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jle	.L49
.L8:
	leaq	(%r12,%rbx,4), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12,%rbx,4), %eax
	testb	$1, %al
	jne	.L50
.L46:
	addl	$1, 0(%rbp)
	testb	$1, %al
	jne	.L5
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addl	$1, 0(%rbp)
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L8
.L49:
	testl	%eax, %eax
	jle	.L12
	movl	64(%rsp), %ebx
	cmpl	$1, %eax
	je	.L2
	imull	68(%rsp), %ebx
	cmpl	$2, %eax
	je	.L2
	imull	72(%rsp), %ebx
	cmpl	$3, %eax
	je	.L2
	imull	76(%rsp), %ebx
	cmpl	$4, %eax
	je	.L2
	imull	80(%rsp), %ebx
	cmpl	$5, %eax
	je	.L2
	imull	84(%rsp), %ebx
	cmpl	$6, %eax
	je	.L2
	imull	88(%rsp), %ebx
	cmpl	$7, %eax
	je	.L2
	imull	92(%rsp), %ebx
	cmpl	$8, %eax
	je	.L2
	imull	96(%rsp), %ebx
	cmpl	$9, %eax
	je	.L2
	imull	100(%rsp), %ebx
.L2:
	pxor	%xmm1, %xmm1
	movsd	.LC1(%rip), %xmm0
	cvtsi2sdl	%eax, %xmm1
	call	pow@PLT
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	movl	$1, %edi
	cvtsi2sdl	%ebx, %xmm1
	leaq	.LC2(%rip), %rsi
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$1, %ebx
	jmp	.L2
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1074266112
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 64(%rsp)
	movq	$0, 96(%rsp)
	movaps	%xmm0, 80(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L50:
	addl	$1, 0(%rbp)
	testb	$1, %al
	je	.L46
.L5:
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jle	.L49
.L8:
	leaq	(%r12,%rbx,4), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r12,%rbx,4), %eax
	testb	$1, %al
	jne	.L50
.L46:
	addl	$1, 0(%rbp)
	testb	$1, %al
	jne	.L5
	movl	12(%rsp), %eax
	addq	$1, %rbx
	addl	$1, 0(%rbp)
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L8
.L49:
	testl	%eax, %eax
	jle	.L12
	movl	64(%rsp), %ebx
	cmpl	$1, %eax
	je	.L2
	imull	68(%rsp), %ebx
	cmpl	$2, %eax
	je	.L2
	imull	72(%rsp), %ebx
	cmpl	$3, %eax
	je	.L2
	imull	76(%rsp), %ebx
	cmpl	$4, %eax
	je	.L2
	imull	80(%rsp), %ebx
	cmpl	$5, %eax
	je	.L2
	imull	84(%rsp), %ebx
	cmpl	$6, %eax
	je	.L2
	imull	88(%rsp), %ebx
	cmpl	$7, %eax
	je	.L2
	imull	92(%rsp), %ebx
	cmpl	$8, %eax
	je	.L2
	imull	96(%rsp), %ebx
	cmpl	$9, %eax
	je	.L2
	imull	100(%rsp), %ebx
.L2:
	pxor	%xmm1, %xmm1
	movsd	.LC1(%rip), %xmm0
	cvtsi2sdl	%eax, %xmm1
	call	pow@PLT
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	movl	$1, %edi
	cvtsi2sdl	%ebx, %xmm1
	leaq	.LC2(%rip), %rsi
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$1, %ebx
	jmp	.L2
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1074266112
	.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:
```