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

```c
// AOJ 2026: Divisor is the Conqueror
// 2017.11.03 bal4u@uu

#include <stdio.h>
#include <string.h>
#include <time.h>

#define HASHSIZ 100019
long long hash[HASHSIZ+2], *hashend = hash + HASHSIZ;

int insert(long long n)
{
	long long *p = hash + n % HASHSIZ;
	while (*p) {
		if (*p == n) return 1;
		if (++p == hashend) p = hash;
	}
	*p = n;
	return 0;
}

int c[15];
int ans[54];
char f[14][365];		// 364=(13+1)*13/2*4

int rec(int j, int k)
{
	int i;
	long long s;

	if (!j) return 1;
	for (s = 0, i = 1; i <= 13; i++) s = (s<<2)+s + c[i];
	if (insert(s)) return 0;

	for (i = 1; i <= 13; i++) {
		if (!c[i]) continue;
		if (f[i][k-i]) {
			c[i]--, ans[j] = i;
			if (rec(j-1, k-i)) return 1;
			c[i]++;
		}
	}
	return 0;
}

int main()
{
	int n, i, v, s;
//	clock_t start, end;

//	start = clock();
	memset(f[1], 1, sizeof(f[1]));
	for (i = 2; i <= 13; i++) {
		f[i][0] = 1;
		for (v = i; v < 365; v += i) f[i][v] = 1;
	}

	while (scanf("%d", &n) && n > 0) {
		if (n == 1) { scanf("%d", &v); printf("%d\n", v); continue; }

		memset(c, 0, sizeof(c));
		for (s = 0, i = 0; i < n; i++) {
			scanf("%d", &v);
			s += v, c[v]++;
		}
		memset(hash, 0, sizeof(hash));
		if (rec(n, s)) {
			printf("%d", ans[1]);
			for (i = 2; i <= n; i++) printf(" %d", ans[i]);
			putchar('\n');
		} else puts("No");
	}
//	end = clock();
//	printf("time %lf\n", (double)(end-start)/CLOCKS_PER_SEC);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 800168
hash:
	.zero	800168
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+800152
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rcx
	movabsq	$-6359782400281211253, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$16, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$100019, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L5:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, -24(%rbp)
	jne	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	addq	$8, -8(%rbp)
	movq	hashend(%rip), %rax
	cmpq	%rax, -8(%rbp)
	jne	.L2
	leaq	hash(%rip), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L5
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, (%rax)
	movl	$0, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	insert, .-insert
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 60
c:
	.zero	60
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 216
ans:
	.zero	216
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 5110
f:
	.zero	5110
	.text
	.globl	rec
	.type	rec, @function
rec:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -20(%rbp)
	jne	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	movq	$0, -8(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L9
.L10:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -12(%rbp)
.L9:
	cmpl	$13, -12(%rbp)
	jle	.L10
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	insert
	testl	%eax, %eax
	je	.L11
	movl	$0, %eax
	jmp	.L8
.L11:
	movl	$1, -12(%rbp)
	jmp	.L12
.L16:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L17
	movl	-24(%rbp), %eax
	subl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	f(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L14
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ans(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	rec
	testl	%eax, %eax
	je	.L15
	movl	$1, %eax
	jmp	.L8
.L15:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L14
.L17:
	nop
.L14:
	addl	$1, -12(%rbp)
.L12:
	cmpl	$13, -12(%rbp)
	jle	.L16
	movl	$0, %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	" %d"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$365, %edx
	movl	$1, %esi
	leaq	365+f(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$2, -16(%rbp)
	jmp	.L19
.L22:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rax, %rdx
	leaq	f(%rip), %rax
	movb	$1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L20
.L21:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	f(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -20(%rbp)
.L20:
	movl	-20(%rbp), %eax
	cmpl	$364, %eax
	jle	.L21
	addl	$1, -16(%rbp)
.L19:
	cmpl	$13, -16(%rbp)
	jle	.L22
	jmp	.L23
.L31:
	movl	-24(%rbp), %eax
	cmpl	$1, %eax
	jne	.L24
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L23
.L24:
	movl	$60, %edx
	movl	$0, %esi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L25
.L26:
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	addl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L25:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L26
	movl	$800168, %edx
	movl	$0, %esi
	leaq	hash(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-24(%rbp), %eax
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	rec
	testl	%eax, %eax
	je	.L27
	movl	4+ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$2, -16(%rbp)
	jmp	.L28
.L29:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ans(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -16(%rbp)
.L28:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L29
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L23
.L27:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L23:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L30
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jg	.L31
.L30:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.p2align 4
	.type	rec.part.0, @function
rec.part.0:
.LFB38:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	hash(%rip), %r8
	leaq	ans(%rip), %r15
	movabsq	$-6359782400281211253, %r9
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	leal	-1(%rdi), %edi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	f(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	4+c(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	$1, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L2:
	addl	$1, %ebx
	addq	$4, %rbp
	cmpl	$14, %ebx
	je	.L18
.L10:
	movl	0(%rbp), %esi
	testl	%esi, %esi
	je	.L2
	movslq	%ebx, %rax
	movl	%r12d, %r10d
	leaq	(%rax,%rax,8), %rcx
	subl	%ebx, %r10d
	leaq	(%rax,%rcx,8), %rax
	movslq	%r10d, %rdx
	leaq	(%rax,%rax,4), %rax
	addq	%r13, %rax
	cmpb	$0, (%rax,%rdx)
	je	.L2
	leal	-1(%rsi), %eax
	movl	%eax, 0(%rbp)
	movslq	%r14d, %rax
	movl	%ebx, (%r15,%rax,4)
	testl	%edi, %edi
	je	.L9
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rcx
	movq	hashend(%rip), %r11
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%r9
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rcx, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	(%r8,%rdx,8), %rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	cmpq	%rcx, %rdx
	je	.L6
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%r11, %rax
	cmove	%rdx, %rax
.L7:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L8
	movq	%rcx, (%rax)
	movl	%r10d, %esi
	movl	%edi, 12(%rsp)
	call	rec.part.0
	testl	%eax, %eax
	jne	.L9
	movl	0(%rbp), %eax
	movl	12(%rsp), %edi
	leaq	hash(%rip), %r8
	movabsq	$-6359782400281211253, %r9
	leal	1(%rax), %esi
.L6:
	addl	$1, %ebx
	movl	%esi, 0(%rbp)
	addq	$4, %rbp
	cmpl	$14, %ebx
	jne	.L10
.L18:
	addq	$24, %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
.L9:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movl	$1, %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
	.cfi_endproc
.LFE38:
	.size	rec.part.0, .-rec.part.0
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB35:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	hashend(%rip), %rcx
	movq	%rdi, %rsi
	movabsq	$-6359782400281211253, %rdx
	imulq	%rdx
	leaq	(%rdx,%rdi), %rax
	movq	%rdi, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rdi, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	cmpq	%rsi, %rdx
	je	.L24
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rax, %rcx
	cmove	%rdx, %rax
.L22:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L23
	movq	%rsi, (%rax)
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	insert, .-insert
	.p2align 4
	.globl	rec
	.type	rec, @function
rec:
.LFB36:
	.cfi_startproc
	endbr64
	movl	%esi, %r8d
	testl	%edi, %edi
	je	.L31
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rsi
	movq	hashend(%rip), %rcx
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	movabsq	$-6359782400281211253, %rdx
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdx
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rsi, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	cmpq	%rdx, %rsi
	je	.L32
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rcx, %rax
	cmove	%rdx, %rax
.L29:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L30
	movq	%rsi, (%rax)
	movl	%r8d, %esi
	jmp	rec.part.0
	.p2align 4,,10
	.p2align 3
.L31:
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE36:
	.size	rec, .-rec
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	" %d"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	373+f(%rip), %rdi
	leaq	365+f(%rip), %rcx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	andq	$-8, %rdi
	leaq	730+f(%rip), %r8
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	subq	%rdi, %rcx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	addl	$365, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	shrl	$3, %ecx
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	movabsq	$72340172838076673, %rax
	movq	%rax, 365+f(%rip)
	movq	%rax, 722+f(%rip)
	rep stosq
	leaq	2(%r8), %rdi
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L36:
	movb	$1, (%r8)
	movl	%ecx, %esi
	movq	%rdi, %rdx
	movl	%ecx, %eax
	.p2align 4,,10
	.p2align 3
.L35:
	addl	%esi, %eax
	movb	$1, (%rdx)
	addq	%rcx, %rdx
	cmpl	$364, %eax
	jle	.L35
	addq	$1, %rcx
	addq	$365, %r8
	addq	$366, %rdi
	cmpq	$14, %rcx
	jne	.L36
	movl	%eax, 52(%rsp)
	leaq	48(%rsp), %rax
	leaq	.LC0(%rip), %r14
	movq	%rax, 8(%rsp)
	leaq	c(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L37:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L61
	movl	48(%rsp), %eax
	testl	%eax, %eax
	jle	.L61
	cmpl	$1, %eax
	je	.L96
	pxor	%xmm0, %xmm0
	xorl	%ebp, %ebp
	leaq	52(%rsp), %r13
	xorl	%ebx, %ebx
	movq	$0, 48+c(%rip)
	movl	$0, 56+c(%rip)
	movaps	%xmm0, c(%rip)
	movaps	%xmm0, 16+c(%rip)
	movaps	%xmm0, 32+c(%rip)
	.p2align 4,,10
	.p2align 3
.L40:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	52(%rsp), %rax
	movl	48(%rsp), %r12d
	addl	$1, (%r15,%rax,4)
	addl	%eax, %ebp
	cmpl	%ebx, %r12d
	jg	.L40
	xorl	%esi, %esi
	movl	$800168, %edx
	leaq	hash(%rip), %rdi
	call	memset@PLT
	testl	%r12d, %r12d
	je	.L41
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rcx
	movq	hashend(%rip), %rbx
	movq	%rax, %r8
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rcx
	movabsq	$-6359782400281211253, %rax
	imulq	%rcx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rcx, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L45:
	cmpq	%rcx, %rdx
	je	.L43
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rbx, %rax
	cmove	%rdx, %rax
.L44:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L45
	movq	%rcx, (%rax)
	leal	-1(%r12), %eax
	leal	-1(%rbp), %r13d
	movl	%ebp, %r9d
	movl	%eax, 20(%rsp)
	leaq	4+c(%rip), %rcx
	leal	-14(%rbp), %r11d
	leal	-2(%r12), %eax
	movl	%r12d, 24(%rsp)
	leaq	f(%rip), %r10
	movq	%rcx, %rbp
	movl	%eax, 28(%rsp)
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L46:
	subl	$1, %r13d
	addq	$4, %rbp
	cmpl	%r13d, %r11d
	je	.L43
.L98:
	movl	0(%rbp), %r8d
.L58:
	movl	%r9d, %ecx
	subl	%r13d, %ecx
	testl	%r8d, %r8d
	je	.L46
	movslq	%ecx, %rdx
	movslq	%r13d, %rax
	leaq	(%rdx,%rdx,8), %rsi
	leaq	(%rdx,%rsi,8), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	addq	%r10, %rdx
	cmpb	$0, (%rdx,%rax)
	je	.L46
	leal	-1(%r8), %eax
	movl	20(%rsp), %edx
	leaq	ans(%rip), %rdi
	movl	%eax, 0(%rbp)
	movslq	24(%rsp), %rax
	movl	%ecx, (%rdi,%rax,4)
	testl	%edx, %edx
	je	.L41
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rcx
	movq	%rax, %rdi
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rcx
	movabsq	$-6359782400281211253, %rax
	imulq	%rcx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$16, %rax
	subq	%rsi, %rax
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L50:
	cmpq	%rcx, %rdx
	je	.L48
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rax, %rbx
	cmove	%rdx, %rax
.L49:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L50
	movq	%rcx, (%rax)
	leaq	4+c(%rip), %rcx
	movq	%rbp, %r8
	movl	$1, %r12d
	movq	%rcx, %rbp
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, %r12d
	addq	$4, %rbp
	cmpl	$14, %r12d
	je	.L97
.L56:
	movl	0(%rbp), %edi
.L57:
	testl	%edi, %edi
	je	.L51
	movslq	%r12d, %rax
	movl	%r13d, %esi
	leaq	(%rax,%rax,8), %rcx
	subl	%r12d, %esi
	leaq	(%rax,%rcx,8), %rax
	movslq	%esi, %rdx
	leaq	(%rax,%rax,4), %rax
	addq	%r10, %rax
	cmpb	$0, (%rax,%rdx)
	je	.L51
	leal	-1(%rdi), %eax
	leaq	ans(%rip), %rcx
	movl	%eax, 0(%rbp)
	movslq	20(%rsp), %rax
	movl	%r12d, (%rcx,%rax,4)
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L41
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rcx
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rcx
	movabsq	$-6359782400281211253, %rax
	imulq	%rcx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rcx, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L55:
	cmpq	%rcx, %rdx
	je	.L53
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rax, %rbx
	cmove	%rdx, %rax
.L54:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L55
	movq	%rcx, (%rax)
	movl	28(%rsp), %edi
	movl	%r9d, 44(%rsp)
	movl	%r11d, 40(%rsp)
	movq	%r8, 32(%rsp)
	call	rec.part.0
	testl	%eax, %eax
	jne	.L41
	movl	0(%rbp), %eax
	movq	32(%rsp), %r8
	leaq	f(%rip), %r10
	movl	40(%rsp), %r11d
	movl	44(%rsp), %r9d
	leal	1(%rax), %edi
.L53:
	addl	$1, %r12d
	movl	%edi, 0(%rbp)
	addq	$4, %rbp
	cmpl	$14, %r12d
	jne	.L56
.L97:
	movl	(%r8), %eax
	movq	%r8, %rbp
	leal	1(%rax), %r8d
.L48:
	subl	$1, %r13d
	movl	%r8d, 0(%rbp)
	addq	$4, %rbp
	cmpl	%r13d, %r11d
	jne	.L98
	.p2align 4,,10
	.p2align 3
.L43:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L41:
	movl	4+ans(%rip), %edx
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	movl	$2, %ebx
	leaq	ans(%rip), %r12
	leaq	.LC2(%rip), %rbp
	call	__printf_chk@PLT
	cmpl	$1, 48(%rsp)
	jle	.L60
.L59:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 48(%rsp)
	jge	.L59
.L60:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L96:
	leaq	52(%rsp), %r13
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L37
.L61:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L99
	addq	$72, %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
.L99:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 5110
f:
	.zero	5110
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 216
ans:
	.zero	216
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 60
c:
	.zero	60
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+800152
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 800168
hash:
	.zero	800168
	.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
	.p2align 4
	.type	rec.part.0, @function
rec.part.0:
.LFB38:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	hash(%rip), %r8
	leaq	ans(%rip), %r15
	movabsq	$-6359782400281211253, %r9
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edi, %r14d
	leal	-1(%rdi), %edi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	f(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	4+c(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	$1, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L2:
	addl	$1, %ebx
	addq	$4, %rbp
	cmpl	$14, %ebx
	je	.L18
.L10:
	movl	0(%rbp), %esi
	testl	%esi, %esi
	je	.L2
	movslq	%ebx, %rax
	movl	%r12d, %r10d
	leaq	(%rax,%rax,8), %rcx
	subl	%ebx, %r10d
	leaq	(%rax,%rcx,8), %rax
	movslq	%r10d, %rdx
	leaq	(%rax,%rax,4), %rax
	addq	%r13, %rax
	cmpb	$0, (%rax,%rdx)
	je	.L2
	leal	-1(%rsi), %eax
	movl	%eax, 0(%rbp)
	movslq	%r14d, %rax
	movl	%ebx, (%r15,%rax,4)
	testl	%edi, %edi
	je	.L9
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rcx
	movq	hashend(%rip), %r11
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%r9
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rcx, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	(%r8,%rdx,8), %rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	cmpq	%rcx, %rdx
	je	.L6
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%r11, %rax
	cmove	%rdx, %rax
.L7:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L8
	movq	%rcx, (%rax)
	movl	%r10d, %esi
	movl	%edi, 12(%rsp)
	call	rec.part.0
	testl	%eax, %eax
	jne	.L9
	movl	0(%rbp), %eax
	movl	12(%rsp), %edi
	leaq	hash(%rip), %r8
	movabsq	$-6359782400281211253, %r9
	leal	1(%rax), %esi
.L6:
	addl	$1, %ebx
	movl	%esi, 0(%rbp)
	addq	$4, %rbp
	cmpl	$14, %ebx
	jne	.L10
.L18:
	addq	$24, %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
.L9:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movl	$1, %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
	.cfi_endproc
.LFE38:
	.size	rec.part.0, .-rec.part.0
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB35:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	hashend(%rip), %rcx
	movq	%rdi, %rsi
	movabsq	$-6359782400281211253, %rdx
	imulq	%rdx
	leaq	(%rdx,%rdi), %rax
	movq	%rdi, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rdi, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	cmpq	%rsi, %rdx
	je	.L24
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rax, %rcx
	cmove	%rdx, %rax
.L22:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L23
	movq	%rsi, (%rax)
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	insert, .-insert
	.p2align 4
	.globl	rec
	.type	rec, @function
rec:
.LFB36:
	.cfi_startproc
	endbr64
	movl	%esi, %r8d
	testl	%edi, %edi
	je	.L31
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rsi
	movq	hashend(%rip), %rcx
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	movabsq	$-6359782400281211253, %rdx
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%rdx
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rsi, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	cmpq	%rdx, %rsi
	je	.L32
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rcx, %rax
	cmove	%rdx, %rax
.L29:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L30
	movq	%rsi, (%rax)
	movl	%r8d, %esi
	jmp	rec.part.0
	.p2align 4,,10
	.p2align 3
.L31:
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE36:
	.size	rec, .-rec
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	" %d"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	373+f(%rip), %rdi
	leaq	365+f(%rip), %rcx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	andq	$-8, %rdi
	leaq	730+f(%rip), %r8
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	subq	%rdi, %rcx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	addl	$365, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	shrl	$3, %ecx
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	movabsq	$72340172838076673, %rax
	movq	%rax, 365+f(%rip)
	movq	%rax, 722+f(%rip)
	rep stosq
	leaq	2(%r8), %rdi
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L36:
	movb	$1, (%r8)
	movl	%ecx, %esi
	movq	%rdi, %rdx
	movl	%ecx, %eax
	.p2align 4,,10
	.p2align 3
.L35:
	addl	%esi, %eax
	movb	$1, (%rdx)
	addq	%rcx, %rdx
	cmpl	$364, %eax
	jle	.L35
	addq	$1, %rcx
	addq	$365, %r8
	addq	$366, %rdi
	cmpq	$14, %rcx
	jne	.L36
	movl	%eax, 52(%rsp)
	leaq	48(%rsp), %rax
	leaq	.LC0(%rip), %r14
	movq	%rax, 8(%rsp)
	leaq	c(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L37:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L61
	movl	48(%rsp), %eax
	testl	%eax, %eax
	jle	.L61
	cmpl	$1, %eax
	je	.L96
	pxor	%xmm0, %xmm0
	xorl	%ebp, %ebp
	leaq	52(%rsp), %r13
	xorl	%ebx, %ebx
	movq	$0, 48+c(%rip)
	movl	$0, 56+c(%rip)
	movaps	%xmm0, c(%rip)
	movaps	%xmm0, 16+c(%rip)
	movaps	%xmm0, 32+c(%rip)
	.p2align 4,,10
	.p2align 3
.L40:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	52(%rsp), %rax
	movl	48(%rsp), %r12d
	addl	$1, (%r15,%rax,4)
	addl	%eax, %ebp
	cmpl	%ebx, %r12d
	jg	.L40
	xorl	%esi, %esi
	movl	$800168, %edx
	leaq	hash(%rip), %rdi
	call	memset@PLT
	testl	%r12d, %r12d
	je	.L41
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rcx
	movq	hashend(%rip), %rbx
	movq	%rax, %r8
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rcx
	movabsq	$-6359782400281211253, %rax
	imulq	%rcx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rcx, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L45:
	cmpq	%rcx, %rdx
	je	.L43
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rbx, %rax
	cmove	%rdx, %rax
.L44:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L45
	movq	%rcx, (%rax)
	leal	-1(%r12), %eax
	leal	-1(%rbp), %r13d
	movl	%ebp, %r9d
	movl	%eax, 20(%rsp)
	leaq	4+c(%rip), %rcx
	leal	-14(%rbp), %r11d
	leal	-2(%r12), %eax
	movl	%r12d, 24(%rsp)
	leaq	f(%rip), %r10
	movq	%rcx, %rbp
	movl	%eax, 28(%rsp)
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L46:
	subl	$1, %r13d
	addq	$4, %rbp
	cmpl	%r13d, %r11d
	je	.L43
.L98:
	movl	0(%rbp), %r8d
.L58:
	movl	%r9d, %ecx
	subl	%r13d, %ecx
	testl	%r8d, %r8d
	je	.L46
	movslq	%ecx, %rdx
	movslq	%r13d, %rax
	leaq	(%rdx,%rdx,8), %rsi
	leaq	(%rdx,%rsi,8), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	addq	%r10, %rdx
	cmpb	$0, (%rdx,%rax)
	je	.L46
	leal	-1(%r8), %eax
	movl	20(%rsp), %edx
	leaq	ans(%rip), %rdi
	movl	%eax, 0(%rbp)
	movslq	24(%rsp), %rax
	movl	%ecx, (%rdi,%rax,4)
	testl	%edx, %edx
	je	.L41
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rcx
	movq	%rax, %rdi
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rcx
	movabsq	$-6359782400281211253, %rax
	imulq	%rcx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$16, %rax
	subq	%rsi, %rax
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L50:
	cmpq	%rcx, %rdx
	je	.L48
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rax, %rbx
	cmove	%rdx, %rax
.L49:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L50
	movq	%rcx, (%rax)
	leaq	4+c(%rip), %rcx
	movq	%rbp, %r8
	movl	$1, %r12d
	movq	%rcx, %rbp
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, %r12d
	addq	$4, %rbp
	cmpl	$14, %r12d
	je	.L97
.L56:
	movl	0(%rbp), %edi
.L57:
	testl	%edi, %edi
	je	.L51
	movslq	%r12d, %rax
	movl	%r13d, %esi
	leaq	(%rax,%rax,8), %rcx
	subl	%r12d, %esi
	leaq	(%rax,%rcx,8), %rax
	movslq	%esi, %rdx
	leaq	(%rax,%rax,4), %rax
	addq	%r10, %rax
	cmpb	$0, (%rax,%rdx)
	je	.L51
	leal	-1(%rdi), %eax
	leaq	ans(%rip), %rcx
	movl	%eax, 0(%rbp)
	movslq	20(%rsp), %rax
	movl	%r12d, (%rcx,%rax,4)
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L41
	movslq	4+c(%rip), %rax
	movslq	8+c(%rip), %rdx
	movslq	52+c(%rip), %rcx
	leaq	(%rax,%rax,4), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	12+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	16+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	20+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	24+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	28+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	32+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	36+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	40+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	44+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	movslq	48+c(%rip), %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rcx
	movabsq	$-6359782400281211253, %rax
	imulq	%rcx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$16, %rax
	subq	%rdx, %rax
	movq	%rcx, %rdx
	imulq	$100019, %rax, %rax
	subq	%rax, %rdx
	leaq	hash(%rip), %rax
	leaq	(%rax,%rdx,8), %rax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L55:
	cmpq	%rcx, %rdx
	je	.L53
	addq	$8, %rax
	leaq	hash(%rip), %rdx
	cmpq	%rax, %rbx
	cmove	%rdx, %rax
.L54:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jne	.L55
	movq	%rcx, (%rax)
	movl	28(%rsp), %edi
	movl	%r9d, 44(%rsp)
	movl	%r11d, 40(%rsp)
	movq	%r8, 32(%rsp)
	call	rec.part.0
	testl	%eax, %eax
	jne	.L41
	movl	0(%rbp), %eax
	movq	32(%rsp), %r8
	leaq	f(%rip), %r10
	movl	40(%rsp), %r11d
	movl	44(%rsp), %r9d
	leal	1(%rax), %edi
.L53:
	addl	$1, %r12d
	movl	%edi, 0(%rbp)
	addq	$4, %rbp
	cmpl	$14, %r12d
	jne	.L56
.L97:
	movl	(%r8), %eax
	movq	%r8, %rbp
	leal	1(%rax), %r8d
.L48:
	subl	$1, %r13d
	movl	%r8d, 0(%rbp)
	addq	$4, %rbp
	cmpl	%r13d, %r11d
	jne	.L98
	.p2align 4,,10
	.p2align 3
.L43:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L41:
	movl	4+ans(%rip), %edx
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	movl	$2, %ebx
	leaq	ans(%rip), %r12
	leaq	.LC2(%rip), %rbp
	call	__printf_chk@PLT
	cmpl	$1, 48(%rsp)
	jle	.L60
.L59:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 48(%rsp)
	jge	.L59
.L60:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L96:
	leaq	52(%rsp), %r13
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L37
.L61:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L99
	addq	$72, %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
.L99:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 5110
f:
	.zero	5110
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 216
ans:
	.zero	216
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 60
c:
	.zero	60
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+800152
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 800168
hash:
	.zero	800168
	.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:

// AOJ 2026: Divisor is the Conqueror
// 2017.11.03 bal4u@uu

#include <stdio.h>
#include <string.h>
#include <time.h>

#define HASHSIZ 100019
long long hash[HASHSIZ+2], *hashend = hash + HASHSIZ;

int insert(long long n)
{
	long long *p = hash + n % HASHSIZ;
	while (*p) {
		if (*p == n) return 1;
		if (++p == hashend) p = hash;
	}
	*p = n;
	return 0;
}

int c[15];
int ans[54];
char f[14][365];		// 364=(13+1)*13/2*4

int rec(int j, int k)
{
	int i;
	long long s;

	if (!j) return 1;
	for (s = 0, i = 1; i <= 13; i++) s = (s<<2)+s + c[i];
	if (insert(s)) return 0;

	for (i = 1; i <= 13; i++) {
		if (!c[i]) continue;
		if (f[i][k-i]) {
			c[i]--, ans[j] = i;
			if (rec(j-1, k-i)) return 1;
			c[i]++;
		}
	}
	return 0;
}

int main()
{
	int n, i, v, s;
//	clock_t start, end;

//	start = clock();
	memset(f[1], 1, sizeof(f[1]));
	for (i = 2; i <= 13; i++) {
		f[i][0] = 1;
		for (v = i; v < 365; v += i) f[i][v] = 1;
	}

	while (scanf("%d", &n) && n > 0) {
		if (n == 1) { scanf("%d", &v); printf("%d\n", v); continue; }

		memset(c, 0, sizeof(c));
		for (s = 0, i = 0; i < n; i++) {
			scanf("%d", &v);
			s += v, c[v]++;
		}
		memset(hash, 0, sizeof(hash));
		if (rec(n, s)) {
			printf("%d", ans[1]);
			for (i = 2; i <= n; i++) printf(" %d", ans[i]);
			putchar('\n');
		} else puts("No");
	}
//	end = clock();
//	printf("time %lf\n", (double)(end-start)/CLOCKS_PER_SEC);
	return 0;
}
5
1 2 3 6 7
4
2 3 3 3
0
 5
1 2 6 6 7
4
2 3 3 3
0
 5
1 3 3 4 7
4
2 3 3 3
0
 5
1 2 3 3 7
4
2 3 2 3
0
 5
1 2 6 6 7
4
2 3 2 3
0
 5
1 2 3 6 7
0
2 5 3 3
0
 5
1 2 6 6 7
0
2 3 2 3
0
 5
1 2 3 9 7
4
2 5 3 3
0
 5
1 2 12 6 7
0
2 4 2 3
0
 5
1 3 5 10 12
0
1 5 2 3
0

No
No
 6 6 2 7 1
No
 7 1 4 3 3
No
 3 3 1 7 2
3 3 2 2
 6 6 2 7 1
3 3 2 2
 No
 6 6 2 7 1
 9 3 2 7 1
No
 12 6 2 1 7
 12 3 5 10 1

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

```c
// AOJ 2026: Divisor is the Conqueror
// 2017.11.03 bal4u@uu

#include <stdio.h>
#include <string.h>
#include <time.h>

#define HASHSIZ 100019
long long hash[HASHSIZ+2], *hashend = hash + HASHSIZ;

int insert(long long n)
{
	long long *p = hash + n % HASHSIZ;
	while (*p) {
		if (*p == n) return 1;
		if (++p == hashend) p = hash;
	}
	*p = n;
	return 0;
}

int c[15];
int ans[54];
char f[14][365];		// 364=(13+1)*13/2*4

int rec(int j, int k)
{
	int i;
	long long s;

	if (!j) return 1;
	for (s = 0, i = 1; i <= 13; i++) s = (s<<2)+s + c[i];
	if (insert(s)) return 0;

	for (i = 1; i <= 13; i++) {
		if (!c[i]) continue;
		if (f[i][k-i]) {
			c[i]--, ans[j] = i;
			if (rec(j-1, k-i)) return 1;
			c[i]++;
		}
	}
	return 0;
}

int main()
{
	int n, i, v, s;
//	clock_t start, end;

//	start = clock();
	memset(f[1], 1, sizeof(f[1]));
	for (i = 2; i <= 13; i++) {
		f[i][0] = 1;
		for (v = i; v < 365; v += i) f[i][v] = 1;
	}

	while (scanf("%d", &n) && n > 0) {
		if (n == 1) { scanf("%d", &v); printf("%d\n", v); continue; }

		memset(c, 0, sizeof(c));
		for (s = 0, i = 0; i < n; i++) {
			scanf("%d", &v);
			s += v, c[v]++;
		}
		memset(hash, 0, sizeof(hash));
		if (rec(n, s)) {
			printf("%d", ans[1]);
			for (i = 2; i <= n; i++) printf(" %d", ans[i]);
			putchar('\n');
		} else puts("No");
	}
//	end = clock();
//	printf("time %lf\n", (double)(end-start)/CLOCKS_PER_SEC);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 800168
hash:
	.zero	800168
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+800152
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rcx
	movabsq	$-6359782400281211253, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$16, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$100019, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L5:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, -24(%rbp)
	jne	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	addq	$8, -8(%rbp)
	movq	hashend(%rip), %rax
	cmpq	%rax, -8(%rbp)
	jne	.L2
	leaq	hash(%rip), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L5
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, (%rax)
	movl	$0, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	insert, .-insert
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 60
c:
	.zero	60
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 216
ans:
	.zero	216
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 5110
f:
	.zero	5110
	.text
	.globl	rec
	.type	rec, @function
rec:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -20(%rbp)
	jne	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	movq	$0, -8(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L9
.L10:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -12(%rbp)
.L9:
	cmpl	$13, -12(%rbp)
	jle	.L10
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	insert
	testl	%eax, %eax
	je	.L11
	movl	$0, %eax
	jmp	.L8
.L11:
	movl	$1, -12(%rbp)
	jmp	.L12
.L16:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L17
	movl	-24(%rbp), %eax
	subl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	f(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L14
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ans(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	rec
	testl	%eax, %eax
	je	.L15
	movl	$1, %eax
	jmp	.L8
.L15:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L14
.L17:
	nop
.L14:
	addl	$1, -12(%rbp)
.L12:
	cmpl	$13, -12(%rbp)
	jle	.L16
	movl	$0, %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	" %d"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$365, %edx
	movl	$1, %esi
	leaq	365+f(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$2, -16(%rbp)
	jmp	.L19
.L22:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rax, %rdx
	leaq	f(%rip), %rax
	movb	$1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L20
.L21:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	f(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -20(%rbp)
.L20:
	movl	-20(%rbp), %eax
	cmpl	$364, %eax
	jle	.L21
	addl	$1, -16(%rbp)
.L19:
	cmpl	$13, -16(%rbp)
	jle	.L22
	jmp	.L23
.L31:
	movl	-24(%rbp), %eax
	cmpl	$1, %eax
	jne	.L24
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L23
.L24:
	movl	$60, %edx
	movl	$0, %esi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L25
.L26:
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	addl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L25:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L26
	movl	$800168, %edx
	movl	$0, %esi
	leaq	hash(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-24(%rbp), %eax
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	rec
	testl	%eax, %eax
	je	.L27
	movl	4+ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$2, -16(%rbp)
	jmp	.L28
.L29:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ans(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -16(%rbp)
.L28:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L29
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L23
.L27:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L23:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L30
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jg	.L31
.L30:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 800168
hash:
	.zero	800168
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+800152
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rcx
	movabsq	$-6359782400281211253, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$16, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$100019, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L5:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, -24(%rbp)
	jne	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	addq	$8, -8(%rbp)
	movq	hashend(%rip), %rax
	cmpq	%rax, -8(%rbp)
	jne	.L2
	leaq	hash(%rip), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L5
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, (%rax)
	movl	$0, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	insert, .-insert
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 60
c:
	.zero	60
	.globl	ans
	.align 32
	.type	ans, @object
	.size	ans, 216
ans:
	.zero	216
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 5110
f:
	.zero	5110
	.text
	.globl	rec
	.type	rec, @function
rec:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -20(%rbp)
	jne	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	movq	$0, -8(%rbp)
	movl	$1, -12(%rbp)
	jmp	.L9
.L10:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -12(%rbp)
.L9:
	cmpl	$13, -12(%rbp)
	jle	.L10
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	insert
	testl	%eax, %eax
	je	.L11
	movl	$0, %eax
	jmp	.L8
.L11:
	movl	$1, -12(%rbp)
	jmp	.L12
.L16:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L17
	movl	-24(%rbp), %eax
	subl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	f(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L14
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ans(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	rec
	testl	%eax, %eax
	je	.L15
	movl	$1, %eax
	jmp	.L8
.L15:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L14
.L17:
	nop
.L14:
	addl	$1, -12(%rbp)
.L12:
	cmpl	$13, -12(%rbp)
	jle	.L16
	movl	$0, %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	" %d"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$365, %edx
	movl	$1, %esi
	leaq	365+f(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$2, -16(%rbp)
	jmp	.L19
.L22:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rax, %rdx
	leaq	f(%rip), %rax
	movb	$1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L20
.L21:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	f(%rip), %rax
	addq	%rdx, %rax
	movb	$1, (%rax)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -20(%rbp)
.L20:
	movl	-20(%rbp), %eax
	cmpl	$364, %eax
	jle	.L21
	addl	$1, -16(%rbp)
.L19:
	cmpl	$13, -16(%rbp)
	jle	.L22
	jmp	.L23
.L31:
	movl	-24(%rbp), %eax
	cmpl	$1, %eax
	jne	.L24
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L23
.L24:
	movl	$60, %edx
	movl	$0, %esi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L25
.L26:
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	addl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -16(%rbp)
.L25:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L26
	movl	$800168, %edx
	movl	$0, %esi
	leaq	hash(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-24(%rbp), %eax
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	rec
	testl	%eax, %eax
	je	.L27
	movl	4+ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$2, -16(%rbp)
	jmp	.L28
.L29:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ans(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -16(%rbp)
.L28:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L29
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L23
.L27:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L23:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L30
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jg	.L31
.L30:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
