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

```c
// A.

#pragma GCC target("avx2")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")

#include <stdio.h>

typedef long long LL;

char buffer[3072000];
LL cnt[20][20];
LL sum[20][20];
LL n;
LL ans;

int main(int argc, char* argv[]) {
	char c, *bufptr = buffer;
	fread(buffer, 1, 3072000, stdin);
	while ((c = *bufptr++) >= '0') {
		n = (n * 10) + (c - '0');
	}
	for (LL i = 0; i < n; ++i) {
		LL x = 0, two = 0, five = 0, df = 0;
		while ((c = *bufptr++) >= ' ') {
			if (c == '.') {
				df = -1;
			} else {
				x = (x * 10) + c - '0';
				five += df;
			}
		}
		two = __builtin_ctzll(x);
		x >>= two;
		two += five;
		while (x % 5 == 0) {
			++five;
			x /= 5;
		}
		if (two > 9) two = 9;
		if (five > 9) five = 9;
		cnt[9 + two][9 + five] += 1;
		sum[9 - two][9 - five] += 1;
	}
	for (int i = 0; i < 20; ++i) {
		for (int j = 1; j < 20; ++j) {
			sum[i][j] += sum[i][j - 1];
		}
	}
	for (int i = 1; i < 20; ++i) {
		for (int j = 0; j < 20; ++j) {
			sum[i][j] += sum[i - 1][j];
		}
	}
	for (int i = 0; i <= 18; ++i) {
		for (int j = 0; j <= 18; ++j) {
			ans += sum[i][j] * cnt[i][j];
			if (i >= 9 && j >= 9) {
				ans -= cnt[i][j];
			}
		}
	}
	printf("%lld\n", ans >> 1);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	buffer
	.bss
	.align 32
	.type	buffer, @object
	.size	buffer, 3072000
buffer:
	.zero	3072000
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 3200
cnt:
	.zero	3200
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 3200
sum:
	.zero	3200
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$3072000, %edx
	movq	stdin(%rip), %rcx
	movl	$1, %esi
	leaq	buffer(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	andq	$-32, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	call	fread@PLT
	movzbl	buffer(%rip), %eax
	movq	n(%rip), %rbx
	leaq	1+buffer(%rip), %r11
	cmpb	$47, %al
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$48, %eax
	leaq	(%rbx,%rbx,4), %rdx
	addq	$1, %r11
	movsbq	%al, %rax
	leaq	(%rax,%rdx,2), %rbx
	movzbl	-1(%r11), %eax
	cmpb	$47, %al
	jg	.L4
	movq	%rbx, n(%rip)
.L3:
	xorl	%r12d, %r12d
	leaq	sum(%rip), %r15
	movabsq	$-3689348814741910323, %rdi
	movabsq	$1844674407370955161, %r8
	movabsq	$3689348814741910322, %r9
	movabsq	$7378697629483820647, %r10
	testq	%rbx, %rbx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movsbq	(%r11), %rdx
	leaq	1(%r11), %rax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	cmpb	$31, %dl
	jg	.L8
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L71:
	leaq	(%r11,%r11,4), %r11
	addq	$1, %rax
	addq	%rcx, %rsi
	leaq	-48(%rdx,%r11,2), %r11
	movsbq	-1(%rax), %rdx
	cmpb	$31, %dl
	jle	.L70
.L8:
	cmpb	$46, %dl
	jne	.L71
	movsbq	(%rax), %rdx
	addq	$1, %rax
	movq	$-1, %rcx
	cmpb	$31, %dl
	jg	.L8
.L70:
	xorl	%ecx, %ecx
	movl	$9, %r14d
	rep bsfq	%r11, %rcx
	sarq	%cl, %r11
	movslq	%ecx, %rdx
	addq	%rsi, %rdx
	movq	%r11, %rcx
	movl	$9, %r11d
	cmpq	%r11, %rdx
	cmovg	%r11, %rdx
	movq	%rax, %r11
	leaq	9(%rdx), %r13
	subq	%rdx, %r14
	movq	%rcx, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	cmpq	%r9, %rdx
	ja	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rcx, %rax
	addq	$1, %rsi
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	%rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rdi, %rax
	addq	%r8, %rax
	cmpq	%r9, %rax
	jbe	.L10
.L9:
	movl	$9, %eax
	leaq	0(%r13,%r13,4), %rdx
	cmpq	%rax, %rsi
	cmovle	%rsi, %rax
	leaq	cnt(%rip), %rsi
	addq	$1, %r12
	leaq	9(%rax,%rdx,4), %rdx
	addq	$1, (%rsi,%rdx,8)
	movl	$9, %edx
	subq	%rax, %rdx
	leaq	(%r14,%r14,4), %rax
	leaq	(%rdx,%rax,4), %rax
	addq	$1, (%r15,%rax,8)
	cmpq	%rbx, %r12
	jne	.L5
.L6:
	leaq	sum(%rip), %r9
	leaq	152(%r9), %rsi
	leaq	3200(%rsi), %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-144(%rsi), %rax
	addq	-152(%rsi), %rax
	leaq	-144(%rsi), %rcx
	movq	%rax, -144(%rsi)
.L13:
	addq	8(%rcx), %rax
	leaq	8(%rcx), %rdx
	movq	%rax, 8(%rcx)
	addq	16(%rcx), %rax
	movq	%rax, 16(%rcx)
	addq	24(%rcx), %rax
	movq	%rax, 24(%rcx)
	addq	24(%rdx), %rax
	leaq	64(%rdx), %rcx
	movq	%rax, 24(%rdx)
	addq	32(%rdx), %rax
	movq	%rax, 32(%rdx)
	addq	40(%rdx), %rax
	movq	%rax, 40(%rdx)
	addq	48(%rdx), %rax
	movq	%rax, 48(%rdx)
	addq	56(%rdx), %rax
	movq	%rax, 56(%rdx)
	addq	64(%rdx), %rax
	movq	%rax, 64(%rdx)
	cmpq	%rcx, %rsi
	jne	.L13
	leaq	224(%rdx), %rsi
	cmpq	%rsi, %rdi
	jne	.L12
	leaq	sum(%rip), %rax
	movl	$1, %ecx
.L14:
	vmovdqa	160(%rax), %ymm5
	vpaddq	(%rax), %ymm5, %ymm5
	leaq	320(%rax), %rdx
	addq	$640, %rax
	vmovdqa	-448(%rax), %ymm4
	vmovdqa	-352(%rax), %xmm1
	addl	$6, %ecx
	vpaddq	-608(%rax), %ymm4, %ymm4
	vpaddq	-512(%rax), %xmm1, %xmm1
	vmovdqa	%ymm5, -480(%rax)
	vmovdqa	-336(%rax), %xmm0
	vpaddq	-320(%rax), %ymm5, %ymm5
	vpaddq	-496(%rax), %xmm0, %xmm0
	vmovdqa	-576(%rax), %ymm3
	vmovdqa	%ymm4, -448(%rax)
	vpaddq	-416(%rax), %ymm3, %ymm3
	vmovdqa	-544(%rax), %ymm2
	vmovdqa	%ymm5, -320(%rax)
	vpaddq	-384(%rax), %ymm2, %ymm2
	vpaddq	-288(%rax), %ymm4, %ymm4
	vmovdqa	%xmm1, -352(%rax)
	vmovdqa	%ymm3, -416(%rax)
	vpaddq	-192(%rax), %xmm1, %xmm1
	vpaddq	-256(%rax), %ymm3, %ymm3
	vmovdqa	%ymm2, -384(%rax)
	vpaddq	-160(%rax), %ymm5, %ymm5
	vpaddq	-224(%rax), %ymm2, %ymm2
	vmovdqa	%xmm0, -336(%rax)
	vpaddq	-176(%rax), %xmm0, %xmm0
	vmovdqa	%ymm4, -288(%rax)
	vpaddq	-128(%rax), %ymm4, %ymm4
	vmovdqa	%ymm3, -256(%rax)
	vmovdqa	%ymm2, -224(%rax)
	vmovdqa	%xmm1, -192(%rax)
	vmovdqa	%xmm0, -176(%rax)
	vmovdqa	%ymm5, 160(%rdx)
	vpaddq	224(%rdx), %ymm3, %ymm3
	vpaddq	256(%rdx), %ymm2, %ymm2
	vpaddq	288(%rdx), %xmm1, %xmm1
	vpaddq	304(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm4, 192(%rdx)
	vmovdqa	%ymm3, 224(%rdx)
	vpaddq	352(%rdx), %ymm4, %ymm4
	vpaddq	320(%rdx), %ymm5, %ymm5
	vmovdqa	%ymm2, 256(%rdx)
	vpaddq	384(%rdx), %ymm3, %ymm3
	vpaddq	416(%rdx), %ymm2, %ymm2
	vmovdqa	%xmm1, 288(%rdx)
	vpaddq	448(%rdx), %xmm1, %xmm1
	vmovdqa	%xmm0, 304(%rdx)
	vpaddq	464(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm2, 416(%rdx)
	vmovdqa	%xmm1, 448(%rdx)
	vmovdqa	%xmm0, 464(%rdx)
	vmovdqa	%ymm5, 320(%rdx)
	vmovdqa	%ymm4, 352(%rdx)
	vmovdqa	%ymm3, 384(%rdx)
	vmovdqa	160(%rax), %ymm5
	vmovdqa	192(%rax), %ymm4
	vpaddq	(%rax), %ymm5, %ymm5
	vpaddq	32(%rax), %ymm4, %ymm4
	vmovdqa	64(%rax), %ymm3
	vmovdqa	%ymm5, 160(%rax)
	vpaddq	320(%rax), %ymm5, %ymm5
	vmovdqa	%ymm4, 192(%rax)
	vpaddq	352(%rax), %ymm4, %ymm4
	vmovdqa	%ymm5, 320(%rax)
	vmovdqa	%ymm4, 352(%rax)
	vpaddq	224(%rax), %ymm3, %ymm3
	vmovdqa	288(%rax), %xmm1
	vmovdqa	304(%rax), %xmm0
	vpaddq	128(%rax), %xmm1, %xmm1
	vpaddq	144(%rax), %xmm0, %xmm0
	vmovdqa	96(%rax), %ymm2
	vmovdqa	%ymm3, 224(%rax)
	vpaddq	256(%rax), %ymm2, %ymm2
	vpaddq	384(%rax), %ymm3, %ymm3
	vmovdqa	%xmm1, 288(%rax)
	vmovdqa	%xmm0, 304(%rax)
	vpaddq	448(%rax), %xmm1, %xmm1
	vpaddq	464(%rax), %xmm0, %xmm0
	vmovdqa	%ymm2, 256(%rax)
	vpaddq	416(%rax), %ymm2, %ymm2
	vmovdqa	%ymm3, 384(%rax)
	vmovdqa	%ymm2, 416(%rax)
	vmovdqa	%xmm1, 448(%rax)
	vmovdqa	%xmm0, 464(%rax)
	leaq	640(%rdx), %rax
	cmpl	$19, %ecx
	jne	.L14
	vmovdqa	3040+sum(%rip), %ymm6
	vpaddq	2880+sum(%rip), %ymm6, %ymm0
	leaq	cnt(%rip), %r10
	xorl	%r11d, %r11d
	vmovdqa	3072+sum(%rip), %ymm7
	vmovdqa	2944+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3040+sum(%rip)
	vpaddq	2912+sum(%rip), %ymm7, %ymm0
	vmovdqa	2976+sum(%rip), %ymm7
	movq	ans(%rip), %rsi
	vmovdqa	%ymm0, 3072+sum(%rip)
	vpaddq	3104+sum(%rip), %ymm6, %ymm0
	vmovdqa	3008+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3104+sum(%rip)
	vpaddq	3136+sum(%rip), %ymm7, %ymm0
	vmovdqa	%ymm0, 3136+sum(%rip)
	vpaddq	3168+sum(%rip), %ymm6, %ymm0
	vmovdqa	%ymm0, 3168+sum(%rip)
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%r9), %rax
	imulq	(%r10), %rax
	addq	%rax, %rsi
	movl	$1, %eax
.L18:
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L17
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L17:
	leaq	1(%rax), %rdi
	movq	(%r10,%rdi,8), %rdx
	movq	(%r9,%rdi,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %edi
	jle	.L38
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L38:
	leaq	1(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L40
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L40:
	leaq	2(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L42
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L42:
	leaq	3(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L44
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L44:
	leaq	4(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L46
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L46:
	leaq	5(%rdi), %rax
	cmpq	$14, %rdi
	jne	.L18
	addl	$1, %r11d
	addq	$160, %r9
	addq	$160, %r10
	cmpl	$19, %r11d
	jne	.L15
	movq	%rsi, ans(%rip)
	leaq	.LC0(%rip), %rdi
	sarq	%rsi
	xorl	%eax, %eax
	vzeroupper
	call	printf@PLT
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L69:
	.cfi_restore_state
	movq	%rax, %r11
	xorl	%r14d, %r14d
	movl	$18, %r13d
	jmp	.L10
	.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	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$3072000, %edx
	movq	stdin(%rip), %rcx
	movl	$1, %esi
	leaq	buffer(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	andq	$-32, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	call	fread@PLT
	movzbl	buffer(%rip), %eax
	movq	n(%rip), %rbx
	leaq	1+buffer(%rip), %r11
	cmpb	$47, %al
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$48, %eax
	leaq	(%rbx,%rbx,4), %rdx
	addq	$1, %r11
	movsbq	%al, %rax
	leaq	(%rax,%rdx,2), %rbx
	movzbl	-1(%r11), %eax
	cmpb	$47, %al
	jg	.L4
	movq	%rbx, n(%rip)
.L3:
	xorl	%r12d, %r12d
	movq	%rbx, %r14
	leaq	cnt(%rip), %r15
	movabsq	$-3689348814741910323, %r9
	movabsq	$1844674407370955161, %r8
	movabsq	$3689348814741910322, %rdi
	movabsq	$7378697629483820647, %r10
	testq	%rbx, %rbx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movsbq	(%r11), %rdx
	leaq	1(%r11), %rax
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	cmpb	$31, %dl
	jg	.L8
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L73:
	leaq	(%r11,%r11,4), %rcx
	addq	$1, %rax
	addq	%rbx, %rsi
	leaq	-48(%rdx,%rcx,2), %r11
	movsbq	-1(%rax), %rdx
	cmpb	$31, %dl
	jle	.L72
.L8:
	cmpb	$46, %dl
	jne	.L73
	movsbq	(%rax), %rdx
	addq	$1, %rax
	movq	$-1, %rbx
	cmpb	$31, %dl
	jg	.L8
.L72:
	xorl	%ecx, %ecx
	movl	$9, %r13d
	rep bsfq	%r11, %rcx
	sarq	%cl, %r11
	movslq	%ecx, %rdx
	addq	%rsi, %rdx
	movq	%r11, %rcx
	movl	$9, %r11d
	cmpq	%r11, %rdx
	cmovg	%r11, %rdx
	movq	%rax, %r11
	leaq	9(%rdx), %rbx
	subq	%rdx, %r13
	movq	%rcx, %rdx
	imulq	%r9, %rdx
	addq	%r8, %rdx
	cmpq	%rdi, %rdx
	ja	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rcx, %rax
	addq	$1, %rsi
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	%rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%r9, %rax
	addq	%r8, %rax
	cmpq	%rdi, %rax
	jbe	.L10
.L9:
	movl	$9, %eax
	leaq	(%rbx,%rbx,4), %rdx
	leaq	sum(%rip), %rbx
	cmpq	%rax, %rsi
	cmovle	%rsi, %rax
	addq	$1, %r12
	leaq	9(%rax,%rdx,4), %rdx
	addq	$1, (%r15,%rdx,8)
	movl	$9, %edx
	subq	%rax, %rdx
	leaq	0(%r13,%r13,4), %rax
	leaq	(%rdx,%rax,4), %rax
	addq	$1, (%rbx,%rax,8)
	cmpq	%r14, %r12
	jne	.L5
.L6:
	leaq	sum(%rip), %r9
	leaq	152(%r9), %rsi
	leaq	3200(%rsi), %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-144(%rsi), %rax
	addq	-152(%rsi), %rax
	leaq	-144(%rsi), %rcx
	movq	%rax, -144(%rsi)
.L13:
	addq	8(%rcx), %rax
	leaq	8(%rcx), %rdx
	movq	%rax, 8(%rcx)
	addq	16(%rcx), %rax
	movq	%rax, 16(%rcx)
	addq	24(%rcx), %rax
	movq	%rax, 24(%rcx)
	addq	24(%rdx), %rax
	leaq	64(%rdx), %rcx
	movq	%rax, 24(%rdx)
	addq	32(%rdx), %rax
	movq	%rax, 32(%rdx)
	addq	40(%rdx), %rax
	movq	%rax, 40(%rdx)
	addq	48(%rdx), %rax
	movq	%rax, 48(%rdx)
	addq	56(%rdx), %rax
	movq	%rax, 56(%rdx)
	addq	64(%rdx), %rax
	movq	%rax, 64(%rdx)
	cmpq	%rcx, %rsi
	jne	.L13
	leaq	224(%rdx), %rsi
	cmpq	%rsi, %rdi
	jne	.L12
	leaq	sum(%rip), %rax
	movl	$1, %ecx
.L14:
	vmovdqa	160(%rax), %ymm5
	vpaddq	(%rax), %ymm5, %ymm5
	leaq	320(%rax), %rdx
	addq	$640, %rax
	vmovdqa	-448(%rax), %ymm4
	vmovdqa	-352(%rax), %xmm1
	addl	$6, %ecx
	vpaddq	-608(%rax), %ymm4, %ymm4
	vpaddq	-512(%rax), %xmm1, %xmm1
	vmovdqa	%ymm5, -480(%rax)
	vmovdqa	-336(%rax), %xmm0
	vpaddq	-320(%rax), %ymm5, %ymm5
	vpaddq	-496(%rax), %xmm0, %xmm0
	vmovdqa	-576(%rax), %ymm3
	vmovdqa	%ymm4, -448(%rax)
	vpaddq	-416(%rax), %ymm3, %ymm3
	vmovdqa	-544(%rax), %ymm2
	vmovdqa	%ymm5, -320(%rax)
	vpaddq	-384(%rax), %ymm2, %ymm2
	vpaddq	-288(%rax), %ymm4, %ymm4
	vmovdqa	%xmm1, -352(%rax)
	vmovdqa	%ymm3, -416(%rax)
	vpaddq	-192(%rax), %xmm1, %xmm1
	vpaddq	-256(%rax), %ymm3, %ymm3
	vmovdqa	%ymm2, -384(%rax)
	vpaddq	-160(%rax), %ymm5, %ymm5
	vpaddq	-224(%rax), %ymm2, %ymm2
	vmovdqa	%xmm0, -336(%rax)
	vpaddq	-176(%rax), %xmm0, %xmm0
	vmovdqa	%ymm4, -288(%rax)
	vpaddq	-128(%rax), %ymm4, %ymm4
	vmovdqa	%ymm3, -256(%rax)
	vmovdqa	%ymm2, -224(%rax)
	vmovdqa	%xmm1, -192(%rax)
	vmovdqa	%xmm0, -176(%rax)
	vmovdqa	%ymm5, 160(%rdx)
	vpaddq	224(%rdx), %ymm3, %ymm3
	vpaddq	256(%rdx), %ymm2, %ymm2
	vpaddq	288(%rdx), %xmm1, %xmm1
	vpaddq	304(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm4, 192(%rdx)
	vmovdqa	%ymm3, 224(%rdx)
	vpaddq	352(%rdx), %ymm4, %ymm4
	vpaddq	320(%rdx), %ymm5, %ymm5
	vmovdqa	%ymm2, 256(%rdx)
	vpaddq	384(%rdx), %ymm3, %ymm3
	vpaddq	416(%rdx), %ymm2, %ymm2
	vmovdqa	%xmm1, 288(%rdx)
	vpaddq	448(%rdx), %xmm1, %xmm1
	vmovdqa	%xmm0, 304(%rdx)
	vpaddq	464(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm2, 416(%rdx)
	vmovdqa	%xmm1, 448(%rdx)
	vmovdqa	%xmm0, 464(%rdx)
	vmovdqa	%ymm5, 320(%rdx)
	vmovdqa	%ymm4, 352(%rdx)
	vmovdqa	%ymm3, 384(%rdx)
	vmovdqa	160(%rax), %ymm5
	vmovdqa	192(%rax), %ymm4
	vpaddq	(%rax), %ymm5, %ymm5
	vpaddq	32(%rax), %ymm4, %ymm4
	vmovdqa	64(%rax), %ymm3
	vmovdqa	%ymm5, 160(%rax)
	vpaddq	320(%rax), %ymm5, %ymm5
	vmovdqa	%ymm4, 192(%rax)
	vpaddq	352(%rax), %ymm4, %ymm4
	vmovdqa	%ymm5, 320(%rax)
	vmovdqa	%ymm4, 352(%rax)
	vpaddq	224(%rax), %ymm3, %ymm3
	vmovdqa	288(%rax), %xmm1
	vmovdqa	304(%rax), %xmm0
	vpaddq	128(%rax), %xmm1, %xmm1
	vpaddq	144(%rax), %xmm0, %xmm0
	vmovdqa	96(%rax), %ymm2
	vmovdqa	%ymm3, 224(%rax)
	vpaddq	256(%rax), %ymm2, %ymm2
	vpaddq	384(%rax), %ymm3, %ymm3
	vmovdqa	%xmm1, 288(%rax)
	vmovdqa	%xmm0, 304(%rax)
	vpaddq	448(%rax), %xmm1, %xmm1
	vpaddq	464(%rax), %xmm0, %xmm0
	vmovdqa	%ymm2, 256(%rax)
	vpaddq	416(%rax), %ymm2, %ymm2
	vmovdqa	%ymm3, 384(%rax)
	vmovdqa	%ymm2, 416(%rax)
	vmovdqa	%xmm1, 448(%rax)
	vmovdqa	%xmm0, 464(%rax)
	leaq	640(%rdx), %rax
	cmpl	$19, %ecx
	jne	.L14
	vmovdqa	3040+sum(%rip), %ymm6
	vpaddq	2880+sum(%rip), %ymm6, %ymm0
	leaq	cnt(%rip), %r10
	xorl	%r11d, %r11d
	vmovdqa	3072+sum(%rip), %ymm7
	vmovdqa	2944+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3040+sum(%rip)
	vpaddq	2912+sum(%rip), %ymm7, %ymm0
	vmovdqa	2976+sum(%rip), %ymm7
	movq	ans(%rip), %rdx
	vmovdqa	%ymm0, 3072+sum(%rip)
	vpaddq	3104+sum(%rip), %ymm6, %ymm0
	vmovdqa	3008+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3104+sum(%rip)
	vpaddq	3136+sum(%rip), %ymm7, %ymm0
	vmovdqa	%ymm0, 3136+sum(%rip)
	vpaddq	3168+sum(%rip), %ymm6, %ymm0
	vmovdqa	%ymm0, 3168+sum(%rip)
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%r9), %rax
	imulq	(%r10), %rax
	addq	%rax, %rdx
	movl	$1, %eax
.L18:
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L17
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L17:
	leaq	1(%rax), %rdi
	movq	(%r10,%rdi,8), %rcx
	movq	(%r9,%rdi,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %edi
	jle	.L38
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L38:
	leaq	1(%rdi), %rax
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L40
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L40:
	leaq	2(%rdi), %rax
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L42
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L42:
	leaq	3(%rdi), %rax
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L44
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L44:
	leaq	4(%rdi), %rax
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L46
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L46:
	leaq	5(%rdi), %rax
	cmpq	$14, %rdi
	jne	.L18
	addl	$1, %r11d
	addq	$160, %r9
	addq	$160, %r10
	cmpl	$19, %r11d
	jne	.L15
	movq	%rdx, ans(%rip)
	leaq	.LC0(%rip), %rsi
	sarq	%rdx
	xorl	%eax, %eax
	movl	$1, %edi
	vzeroupper
	call	__printf_chk@PLT
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L71:
	.cfi_restore_state
	movq	%rax, %r11
	xorl	%r13d, %r13d
	movl	$18, %ebx
	xorl	%ecx, %ecx
	jmp	.L10
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 3200
sum:
	.zero	3200
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 3200
cnt:
	.zero	3200
	.globl	buffer
	.align 32
	.type	buffer, @object
	.size	buffer, 3072000
buffer:
	.zero	3072000
	.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	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$3072000, %edx
	movq	stdin(%rip), %rcx
	movl	$1, %esi
	leaq	buffer(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	andq	$-32, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	call	fread@PLT
	movzbl	buffer(%rip), %eax
	movq	n(%rip), %rbx
	leaq	1+buffer(%rip), %r11
	cmpb	$47, %al
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$48, %eax
	leaq	(%rbx,%rbx,4), %rdx
	addq	$1, %r11
	movsbq	%al, %rax
	leaq	(%rax,%rdx,2), %rbx
	movzbl	-1(%r11), %eax
	cmpb	$47, %al
	jg	.L4
	movq	%rbx, n(%rip)
.L3:
	xorl	%r12d, %r12d
	movq	%rbx, %r14
	leaq	cnt(%rip), %r15
	movabsq	$-3689348814741910323, %r9
	movabsq	$1844674407370955161, %r8
	movabsq	$3689348814741910322, %rdi
	movabsq	$7378697629483820647, %r10
	testq	%rbx, %rbx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movsbq	(%r11), %rdx
	leaq	1(%r11), %rax
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	cmpb	$31, %dl
	jg	.L8
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L73:
	leaq	(%r11,%r11,4), %rcx
	addq	$1, %rax
	addq	%rbx, %rsi
	leaq	-48(%rdx,%rcx,2), %r11
	movsbq	-1(%rax), %rdx
	cmpb	$31, %dl
	jle	.L72
.L8:
	cmpb	$46, %dl
	jne	.L73
	movsbq	(%rax), %rdx
	addq	$1, %rax
	movq	$-1, %rbx
	cmpb	$31, %dl
	jg	.L8
.L72:
	xorl	%ecx, %ecx
	movl	$9, %r13d
	rep bsfq	%r11, %rcx
	sarq	%cl, %r11
	movslq	%ecx, %rdx
	addq	%rsi, %rdx
	movq	%r11, %rcx
	movl	$9, %r11d
	cmpq	%r11, %rdx
	cmovg	%r11, %rdx
	movq	%rax, %r11
	leaq	9(%rdx), %rbx
	subq	%rdx, %r13
	movq	%rcx, %rdx
	imulq	%r9, %rdx
	addq	%r8, %rdx
	cmpq	%rdi, %rdx
	ja	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rcx, %rax
	addq	$1, %rsi
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	%rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%r9, %rax
	addq	%r8, %rax
	cmpq	%rdi, %rax
	jbe	.L10
.L9:
	movl	$9, %eax
	leaq	(%rbx,%rbx,4), %rdx
	leaq	sum(%rip), %rbx
	cmpq	%rax, %rsi
	cmovle	%rsi, %rax
	addq	$1, %r12
	leaq	9(%rax,%rdx,4), %rdx
	addq	$1, (%r15,%rdx,8)
	movl	$9, %edx
	subq	%rax, %rdx
	leaq	0(%r13,%r13,4), %rax
	leaq	(%rdx,%rax,4), %rax
	addq	$1, (%rbx,%rax,8)
	cmpq	%r14, %r12
	jne	.L5
.L6:
	leaq	sum(%rip), %r9
	leaq	152(%r9), %rsi
	leaq	3200(%rsi), %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-144(%rsi), %rax
	addq	-152(%rsi), %rax
	leaq	-144(%rsi), %rcx
	movq	%rax, -144(%rsi)
.L13:
	addq	8(%rcx), %rax
	leaq	8(%rcx), %rdx
	movq	%rax, 8(%rcx)
	addq	16(%rcx), %rax
	movq	%rax, 16(%rcx)
	addq	24(%rcx), %rax
	movq	%rax, 24(%rcx)
	addq	24(%rdx), %rax
	leaq	64(%rdx), %rcx
	movq	%rax, 24(%rdx)
	addq	32(%rdx), %rax
	movq	%rax, 32(%rdx)
	addq	40(%rdx), %rax
	movq	%rax, 40(%rdx)
	addq	48(%rdx), %rax
	movq	%rax, 48(%rdx)
	addq	56(%rdx), %rax
	movq	%rax, 56(%rdx)
	addq	64(%rdx), %rax
	movq	%rax, 64(%rdx)
	cmpq	%rcx, %rsi
	jne	.L13
	leaq	224(%rdx), %rsi
	cmpq	%rsi, %rdi
	jne	.L12
	leaq	sum(%rip), %rax
	movl	$1, %ecx
.L14:
	vmovdqa	160(%rax), %ymm5
	vpaddq	(%rax), %ymm5, %ymm5
	leaq	320(%rax), %rdx
	addq	$640, %rax
	vmovdqa	-448(%rax), %ymm4
	vmovdqa	-352(%rax), %xmm1
	addl	$6, %ecx
	vpaddq	-608(%rax), %ymm4, %ymm4
	vpaddq	-512(%rax), %xmm1, %xmm1
	vmovdqa	%ymm5, -480(%rax)
	vmovdqa	-336(%rax), %xmm0
	vpaddq	-320(%rax), %ymm5, %ymm5
	vpaddq	-496(%rax), %xmm0, %xmm0
	vmovdqa	-576(%rax), %ymm3
	vmovdqa	%ymm4, -448(%rax)
	vpaddq	-416(%rax), %ymm3, %ymm3
	vmovdqa	-544(%rax), %ymm2
	vmovdqa	%ymm5, -320(%rax)
	vpaddq	-384(%rax), %ymm2, %ymm2
	vpaddq	-288(%rax), %ymm4, %ymm4
	vmovdqa	%xmm1, -352(%rax)
	vmovdqa	%ymm3, -416(%rax)
	vpaddq	-192(%rax), %xmm1, %xmm1
	vpaddq	-256(%rax), %ymm3, %ymm3
	vmovdqa	%ymm2, -384(%rax)
	vpaddq	-160(%rax), %ymm5, %ymm5
	vpaddq	-224(%rax), %ymm2, %ymm2
	vmovdqa	%xmm0, -336(%rax)
	vpaddq	-176(%rax), %xmm0, %xmm0
	vmovdqa	%ymm4, -288(%rax)
	vpaddq	-128(%rax), %ymm4, %ymm4
	vmovdqa	%ymm3, -256(%rax)
	vmovdqa	%ymm2, -224(%rax)
	vmovdqa	%xmm1, -192(%rax)
	vmovdqa	%xmm0, -176(%rax)
	vmovdqa	%ymm5, 160(%rdx)
	vpaddq	224(%rdx), %ymm3, %ymm3
	vpaddq	256(%rdx), %ymm2, %ymm2
	vpaddq	288(%rdx), %xmm1, %xmm1
	vpaddq	304(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm4, 192(%rdx)
	vmovdqa	%ymm3, 224(%rdx)
	vpaddq	352(%rdx), %ymm4, %ymm4
	vpaddq	320(%rdx), %ymm5, %ymm5
	vmovdqa	%ymm2, 256(%rdx)
	vpaddq	384(%rdx), %ymm3, %ymm3
	vpaddq	416(%rdx), %ymm2, %ymm2
	vmovdqa	%xmm1, 288(%rdx)
	vpaddq	448(%rdx), %xmm1, %xmm1
	vmovdqa	%xmm0, 304(%rdx)
	vpaddq	464(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm2, 416(%rdx)
	vmovdqa	%xmm1, 448(%rdx)
	vmovdqa	%xmm0, 464(%rdx)
	vmovdqa	%ymm5, 320(%rdx)
	vmovdqa	%ymm4, 352(%rdx)
	vmovdqa	%ymm3, 384(%rdx)
	vmovdqa	160(%rax), %ymm5
	vmovdqa	192(%rax), %ymm4
	vpaddq	(%rax), %ymm5, %ymm5
	vpaddq	32(%rax), %ymm4, %ymm4
	vmovdqa	64(%rax), %ymm3
	vmovdqa	%ymm5, 160(%rax)
	vpaddq	320(%rax), %ymm5, %ymm5
	vmovdqa	%ymm4, 192(%rax)
	vpaddq	352(%rax), %ymm4, %ymm4
	vmovdqa	%ymm5, 320(%rax)
	vmovdqa	%ymm4, 352(%rax)
	vpaddq	224(%rax), %ymm3, %ymm3
	vmovdqa	288(%rax), %xmm1
	vmovdqa	304(%rax), %xmm0
	vpaddq	128(%rax), %xmm1, %xmm1
	vpaddq	144(%rax), %xmm0, %xmm0
	vmovdqa	96(%rax), %ymm2
	vmovdqa	%ymm3, 224(%rax)
	vpaddq	256(%rax), %ymm2, %ymm2
	vpaddq	384(%rax), %ymm3, %ymm3
	vmovdqa	%xmm1, 288(%rax)
	vmovdqa	%xmm0, 304(%rax)
	vpaddq	448(%rax), %xmm1, %xmm1
	vpaddq	464(%rax), %xmm0, %xmm0
	vmovdqa	%ymm2, 256(%rax)
	vpaddq	416(%rax), %ymm2, %ymm2
	vmovdqa	%ymm3, 384(%rax)
	vmovdqa	%ymm2, 416(%rax)
	vmovdqa	%xmm1, 448(%rax)
	vmovdqa	%xmm0, 464(%rax)
	leaq	640(%rdx), %rax
	cmpl	$19, %ecx
	jne	.L14
	vmovdqa	3040+sum(%rip), %ymm6
	vpaddq	2880+sum(%rip), %ymm6, %ymm0
	leaq	cnt(%rip), %r10
	xorl	%r11d, %r11d
	vmovdqa	3072+sum(%rip), %ymm7
	vmovdqa	2944+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3040+sum(%rip)
	vpaddq	2912+sum(%rip), %ymm7, %ymm0
	vmovdqa	2976+sum(%rip), %ymm7
	movq	ans(%rip), %rdx
	vmovdqa	%ymm0, 3072+sum(%rip)
	vpaddq	3104+sum(%rip), %ymm6, %ymm0
	vmovdqa	3008+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3104+sum(%rip)
	vpaddq	3136+sum(%rip), %ymm7, %ymm0
	vmovdqa	%ymm0, 3136+sum(%rip)
	vpaddq	3168+sum(%rip), %ymm6, %ymm0
	vmovdqa	%ymm0, 3168+sum(%rip)
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%r9), %rax
	imulq	(%r10), %rax
	addq	%rax, %rdx
	movl	$1, %eax
.L18:
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L17
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L17:
	leaq	1(%rax), %rdi
	movq	(%r10,%rdi,8), %rcx
	movq	(%r9,%rdi,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %edi
	jle	.L38
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L38:
	leaq	1(%rdi), %rax
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L40
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L40:
	leaq	2(%rdi), %rax
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L42
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L42:
	leaq	3(%rdi), %rax
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L44
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L44:
	leaq	4(%rdi), %rax
	movq	(%r10,%rax,8), %rcx
	movq	(%r9,%rax,8), %rsi
	imulq	%rcx, %rsi
	addq	%rsi, %rdx
	cmpl	$8, %eax
	jle	.L46
	cmpl	$8, %r11d
	movq	%rdx, %rsi
	setg	%r8b
	subq	%rcx, %rsi
	testb	%r8b, %r8b
	cmovne	%rsi, %rdx
.L46:
	leaq	5(%rdi), %rax
	cmpq	$14, %rdi
	jne	.L18
	addl	$1, %r11d
	addq	$160, %r9
	addq	$160, %r10
	cmpl	$19, %r11d
	jne	.L15
	movq	%rdx, ans(%rip)
	leaq	.LC0(%rip), %rsi
	sarq	%rdx
	xorl	%eax, %eax
	movl	$1, %edi
	vzeroupper
	call	__printf_chk@PLT
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L71:
	.cfi_restore_state
	movq	%rax, %r11
	xorl	%r13d, %r13d
	movl	$18, %ebx
	xorl	%ecx, %ecx
	jmp	.L10
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 3200
sum:
	.zero	3200
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 3200
cnt:
	.zero	3200
	.globl	buffer
	.align 32
	.type	buffer, @object
	.size	buffer, 3072000
buffer:
	.zero	3072000
	.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:

// A.

#pragma GCC target("avx2")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")

#include <stdio.h>

typedef long long LL;

char buffer[3072000];
LL cnt[20][20];
LL sum[20][20];
LL n;
LL ans;

int main(int argc, char* argv[]) {
	char c, *bufptr = buffer;
	fread(buffer, 1, 3072000, stdin);
	while ((c = *bufptr++) >= '0') {
		n = (n * 10) + (c - '0');
	}
	for (LL i = 0; i < n; ++i) {
		LL x = 0, two = 0, five = 0, df = 0;
		while ((c = *bufptr++) >= ' ') {
			if (c == '.') {
				df = -1;
			} else {
				x = (x * 10) + c - '0';
				five += df;
			}
		}
		two = __builtin_ctzll(x);
		x >>= two;
		two += five;
		while (x % 5 == 0) {
			++five;
			x /= 5;
		}
		if (two > 9) two = 9;
		if (five > 9) five = 9;
		cnt[9 + two][9 + five] += 1;
		sum[9 - two][9 - five] += 1;
	}
	for (int i = 0; i < 20; ++i) {
		for (int j = 1; j < 20; ++j) {
			sum[i][j] += sum[i][j - 1];
		}
	}
	for (int i = 1; i < 20; ++i) {
		for (int j = 0; j < 20; ++j) {
			sum[i][j] += sum[i - 1][j];
		}
	}
	for (int i = 0; i <= 18; ++i) {
		for (int j = 0; j <= 18; ++j) {
			ans += sum[i][j] * cnt[i][j];
			if (i >= 9 && j >= 9) {
				ans -= cnt[i][j];
			}
		}
	}
	printf("%lld\n", ans >> 1);
	return 0;
}

5
7.5
2.4
17.000000001
17
16.487690532545415
 5
7.950925288494011
2.4
17.000000001
17
16.487690532545415
 5
7.5
2.4
17.000000001
22
16.000000000
 11
0.9
1
1
1.25
2.30000
5
70
0.000000001
9999.999999999
0.999999999
1.7676771981771382
 5
7.5
2.4
17.000000001
22
16.47557284807662
 11
0.9
1
1
1.25
2.7527267588296525
5
70
0.000000001
9999.999999999
0.999999999
1.7676771981771382
 5
8.205736028631307
2.4
17.000000001
17
16.487690532545415
 5
8.205736028631307
2.4
17.292178828580756
17
16.487690532545415
 5
8.205736028631307
2.4
17.292178828580756
17
16.73330360342837
 5
8.205736028631307
2.4
17.649163518733673
17
16.73330360342837

1
 0
 4
 8
 2
 7
 0
 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
// A.

#pragma GCC target("avx2")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")

#include <stdio.h>

typedef long long LL;

char buffer[3072000];
LL cnt[20][20];
LL sum[20][20];
LL n;
LL ans;

int main(int argc, char* argv[]) {
	char c, *bufptr = buffer;
	fread(buffer, 1, 3072000, stdin);
	while ((c = *bufptr++) >= '0') {
		n = (n * 10) + (c - '0');
	}
	for (LL i = 0; i < n; ++i) {
		LL x = 0, two = 0, five = 0, df = 0;
		while ((c = *bufptr++) >= ' ') {
			if (c == '.') {
				df = -1;
			} else {
				x = (x * 10) + c - '0';
				five += df;
			}
		}
		two = __builtin_ctzll(x);
		x >>= two;
		two += five;
		while (x % 5 == 0) {
			++five;
			x /= 5;
		}
		if (two > 9) two = 9;
		if (five > 9) five = 9;
		cnt[9 + two][9 + five] += 1;
		sum[9 - two][9 - five] += 1;
	}
	for (int i = 0; i < 20; ++i) {
		for (int j = 1; j < 20; ++j) {
			sum[i][j] += sum[i][j - 1];
		}
	}
	for (int i = 1; i < 20; ++i) {
		for (int j = 0; j < 20; ++j) {
			sum[i][j] += sum[i - 1][j];
		}
	}
	for (int i = 0; i <= 18; ++i) {
		for (int j = 0; j <= 18; ++j) {
			ans += sum[i][j] * cnt[i][j];
			if (i >= 9 && j >= 9) {
				ans -= cnt[i][j];
			}
		}
	}
	printf("%lld\n", ans >> 1);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	buffer
	.bss
	.align 32
	.type	buffer, @object
	.size	buffer, 3072000
buffer:
	.zero	3072000
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 3200
cnt:
	.zero	3200
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 3200
sum:
	.zero	3200
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$3072000, %edx
	movq	stdin(%rip), %rcx
	movl	$1, %esi
	leaq	buffer(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	andq	$-32, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	call	fread@PLT
	movzbl	buffer(%rip), %eax
	movq	n(%rip), %rbx
	leaq	1+buffer(%rip), %r11
	cmpb	$47, %al
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$48, %eax
	leaq	(%rbx,%rbx,4), %rdx
	addq	$1, %r11
	movsbq	%al, %rax
	leaq	(%rax,%rdx,2), %rbx
	movzbl	-1(%r11), %eax
	cmpb	$47, %al
	jg	.L4
	movq	%rbx, n(%rip)
.L3:
	xorl	%r12d, %r12d
	leaq	sum(%rip), %r15
	movabsq	$-3689348814741910323, %rdi
	movabsq	$1844674407370955161, %r8
	movabsq	$3689348814741910322, %r9
	movabsq	$7378697629483820647, %r10
	testq	%rbx, %rbx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movsbq	(%r11), %rdx
	leaq	1(%r11), %rax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	cmpb	$31, %dl
	jg	.L8
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L71:
	leaq	(%r11,%r11,4), %r11
	addq	$1, %rax
	addq	%rcx, %rsi
	leaq	-48(%rdx,%r11,2), %r11
	movsbq	-1(%rax), %rdx
	cmpb	$31, %dl
	jle	.L70
.L8:
	cmpb	$46, %dl
	jne	.L71
	movsbq	(%rax), %rdx
	addq	$1, %rax
	movq	$-1, %rcx
	cmpb	$31, %dl
	jg	.L8
.L70:
	xorl	%ecx, %ecx
	movl	$9, %r14d
	rep bsfq	%r11, %rcx
	sarq	%cl, %r11
	movslq	%ecx, %rdx
	addq	%rsi, %rdx
	movq	%r11, %rcx
	movl	$9, %r11d
	cmpq	%r11, %rdx
	cmovg	%r11, %rdx
	movq	%rax, %r11
	leaq	9(%rdx), %r13
	subq	%rdx, %r14
	movq	%rcx, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	cmpq	%r9, %rdx
	ja	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rcx, %rax
	addq	$1, %rsi
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	%rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rdi, %rax
	addq	%r8, %rax
	cmpq	%r9, %rax
	jbe	.L10
.L9:
	movl	$9, %eax
	leaq	0(%r13,%r13,4), %rdx
	cmpq	%rax, %rsi
	cmovle	%rsi, %rax
	leaq	cnt(%rip), %rsi
	addq	$1, %r12
	leaq	9(%rax,%rdx,4), %rdx
	addq	$1, (%rsi,%rdx,8)
	movl	$9, %edx
	subq	%rax, %rdx
	leaq	(%r14,%r14,4), %rax
	leaq	(%rdx,%rax,4), %rax
	addq	$1, (%r15,%rax,8)
	cmpq	%rbx, %r12
	jne	.L5
.L6:
	leaq	sum(%rip), %r9
	leaq	152(%r9), %rsi
	leaq	3200(%rsi), %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-144(%rsi), %rax
	addq	-152(%rsi), %rax
	leaq	-144(%rsi), %rcx
	movq	%rax, -144(%rsi)
.L13:
	addq	8(%rcx), %rax
	leaq	8(%rcx), %rdx
	movq	%rax, 8(%rcx)
	addq	16(%rcx), %rax
	movq	%rax, 16(%rcx)
	addq	24(%rcx), %rax
	movq	%rax, 24(%rcx)
	addq	24(%rdx), %rax
	leaq	64(%rdx), %rcx
	movq	%rax, 24(%rdx)
	addq	32(%rdx), %rax
	movq	%rax, 32(%rdx)
	addq	40(%rdx), %rax
	movq	%rax, 40(%rdx)
	addq	48(%rdx), %rax
	movq	%rax, 48(%rdx)
	addq	56(%rdx), %rax
	movq	%rax, 56(%rdx)
	addq	64(%rdx), %rax
	movq	%rax, 64(%rdx)
	cmpq	%rcx, %rsi
	jne	.L13
	leaq	224(%rdx), %rsi
	cmpq	%rsi, %rdi
	jne	.L12
	leaq	sum(%rip), %rax
	movl	$1, %ecx
.L14:
	vmovdqa	160(%rax), %ymm5
	vpaddq	(%rax), %ymm5, %ymm5
	leaq	320(%rax), %rdx
	addq	$640, %rax
	vmovdqa	-448(%rax), %ymm4
	vmovdqa	-352(%rax), %xmm1
	addl	$6, %ecx
	vpaddq	-608(%rax), %ymm4, %ymm4
	vpaddq	-512(%rax), %xmm1, %xmm1
	vmovdqa	%ymm5, -480(%rax)
	vmovdqa	-336(%rax), %xmm0
	vpaddq	-320(%rax), %ymm5, %ymm5
	vpaddq	-496(%rax), %xmm0, %xmm0
	vmovdqa	-576(%rax), %ymm3
	vmovdqa	%ymm4, -448(%rax)
	vpaddq	-416(%rax), %ymm3, %ymm3
	vmovdqa	-544(%rax), %ymm2
	vmovdqa	%ymm5, -320(%rax)
	vpaddq	-384(%rax), %ymm2, %ymm2
	vpaddq	-288(%rax), %ymm4, %ymm4
	vmovdqa	%xmm1, -352(%rax)
	vmovdqa	%ymm3, -416(%rax)
	vpaddq	-192(%rax), %xmm1, %xmm1
	vpaddq	-256(%rax), %ymm3, %ymm3
	vmovdqa	%ymm2, -384(%rax)
	vpaddq	-160(%rax), %ymm5, %ymm5
	vpaddq	-224(%rax), %ymm2, %ymm2
	vmovdqa	%xmm0, -336(%rax)
	vpaddq	-176(%rax), %xmm0, %xmm0
	vmovdqa	%ymm4, -288(%rax)
	vpaddq	-128(%rax), %ymm4, %ymm4
	vmovdqa	%ymm3, -256(%rax)
	vmovdqa	%ymm2, -224(%rax)
	vmovdqa	%xmm1, -192(%rax)
	vmovdqa	%xmm0, -176(%rax)
	vmovdqa	%ymm5, 160(%rdx)
	vpaddq	224(%rdx), %ymm3, %ymm3
	vpaddq	256(%rdx), %ymm2, %ymm2
	vpaddq	288(%rdx), %xmm1, %xmm1
	vpaddq	304(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm4, 192(%rdx)
	vmovdqa	%ymm3, 224(%rdx)
	vpaddq	352(%rdx), %ymm4, %ymm4
	vpaddq	320(%rdx), %ymm5, %ymm5
	vmovdqa	%ymm2, 256(%rdx)
	vpaddq	384(%rdx), %ymm3, %ymm3
	vpaddq	416(%rdx), %ymm2, %ymm2
	vmovdqa	%xmm1, 288(%rdx)
	vpaddq	448(%rdx), %xmm1, %xmm1
	vmovdqa	%xmm0, 304(%rdx)
	vpaddq	464(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm2, 416(%rdx)
	vmovdqa	%xmm1, 448(%rdx)
	vmovdqa	%xmm0, 464(%rdx)
	vmovdqa	%ymm5, 320(%rdx)
	vmovdqa	%ymm4, 352(%rdx)
	vmovdqa	%ymm3, 384(%rdx)
	vmovdqa	160(%rax), %ymm5
	vmovdqa	192(%rax), %ymm4
	vpaddq	(%rax), %ymm5, %ymm5
	vpaddq	32(%rax), %ymm4, %ymm4
	vmovdqa	64(%rax), %ymm3
	vmovdqa	%ymm5, 160(%rax)
	vpaddq	320(%rax), %ymm5, %ymm5
	vmovdqa	%ymm4, 192(%rax)
	vpaddq	352(%rax), %ymm4, %ymm4
	vmovdqa	%ymm5, 320(%rax)
	vmovdqa	%ymm4, 352(%rax)
	vpaddq	224(%rax), %ymm3, %ymm3
	vmovdqa	288(%rax), %xmm1
	vmovdqa	304(%rax), %xmm0
	vpaddq	128(%rax), %xmm1, %xmm1
	vpaddq	144(%rax), %xmm0, %xmm0
	vmovdqa	96(%rax), %ymm2
	vmovdqa	%ymm3, 224(%rax)
	vpaddq	256(%rax), %ymm2, %ymm2
	vpaddq	384(%rax), %ymm3, %ymm3
	vmovdqa	%xmm1, 288(%rax)
	vmovdqa	%xmm0, 304(%rax)
	vpaddq	448(%rax), %xmm1, %xmm1
	vpaddq	464(%rax), %xmm0, %xmm0
	vmovdqa	%ymm2, 256(%rax)
	vpaddq	416(%rax), %ymm2, %ymm2
	vmovdqa	%ymm3, 384(%rax)
	vmovdqa	%ymm2, 416(%rax)
	vmovdqa	%xmm1, 448(%rax)
	vmovdqa	%xmm0, 464(%rax)
	leaq	640(%rdx), %rax
	cmpl	$19, %ecx
	jne	.L14
	vmovdqa	3040+sum(%rip), %ymm6
	vpaddq	2880+sum(%rip), %ymm6, %ymm0
	leaq	cnt(%rip), %r10
	xorl	%r11d, %r11d
	vmovdqa	3072+sum(%rip), %ymm7
	vmovdqa	2944+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3040+sum(%rip)
	vpaddq	2912+sum(%rip), %ymm7, %ymm0
	vmovdqa	2976+sum(%rip), %ymm7
	movq	ans(%rip), %rsi
	vmovdqa	%ymm0, 3072+sum(%rip)
	vpaddq	3104+sum(%rip), %ymm6, %ymm0
	vmovdqa	3008+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3104+sum(%rip)
	vpaddq	3136+sum(%rip), %ymm7, %ymm0
	vmovdqa	%ymm0, 3136+sum(%rip)
	vpaddq	3168+sum(%rip), %ymm6, %ymm0
	vmovdqa	%ymm0, 3168+sum(%rip)
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%r9), %rax
	imulq	(%r10), %rax
	addq	%rax, %rsi
	movl	$1, %eax
.L18:
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L17
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L17:
	leaq	1(%rax), %rdi
	movq	(%r10,%rdi,8), %rdx
	movq	(%r9,%rdi,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %edi
	jle	.L38
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L38:
	leaq	1(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L40
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L40:
	leaq	2(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L42
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L42:
	leaq	3(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L44
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L44:
	leaq	4(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L46
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L46:
	leaq	5(%rdi), %rax
	cmpq	$14, %rdi
	jne	.L18
	addl	$1, %r11d
	addq	$160, %r9
	addq	$160, %r10
	cmpl	$19, %r11d
	jne	.L15
	movq	%rsi, ans(%rip)
	leaq	.LC0(%rip), %rdi
	sarq	%rsi
	xorl	%eax, %eax
	vzeroupper
	call	printf@PLT
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L69:
	.cfi_restore_state
	movq	%rax, %r11
	xorl	%r14d, %r14d
	movl	$18, %r13d
	jmp	.L10
	.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
	.globl	buffer
	.bss
	.align 32
	.type	buffer, @object
	.size	buffer, 3072000
buffer:
	.zero	3072000
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 3200
cnt:
	.zero	3200
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 3200
sum:
	.zero	3200
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$3072000, %edx
	movq	stdin(%rip), %rcx
	movl	$1, %esi
	leaq	buffer(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	andq	$-32, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	call	fread@PLT
	movzbl	buffer(%rip), %eax
	movq	n(%rip), %rbx
	leaq	1+buffer(%rip), %r11
	cmpb	$47, %al
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$48, %eax
	leaq	(%rbx,%rbx,4), %rdx
	addq	$1, %r11
	movsbq	%al, %rax
	leaq	(%rax,%rdx,2), %rbx
	movzbl	-1(%r11), %eax
	cmpb	$47, %al
	jg	.L4
	movq	%rbx, n(%rip)
.L3:
	xorl	%r12d, %r12d
	leaq	sum(%rip), %r15
	movabsq	$-3689348814741910323, %rdi
	movabsq	$1844674407370955161, %r8
	movabsq	$3689348814741910322, %r9
	movabsq	$7378697629483820647, %r10
	testq	%rbx, %rbx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movsbq	(%r11), %rdx
	leaq	1(%r11), %rax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	cmpb	$31, %dl
	jg	.L8
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L71:
	leaq	(%r11,%r11,4), %r11
	addq	$1, %rax
	addq	%rcx, %rsi
	leaq	-48(%rdx,%r11,2), %r11
	movsbq	-1(%rax), %rdx
	cmpb	$31, %dl
	jle	.L70
.L8:
	cmpb	$46, %dl
	jne	.L71
	movsbq	(%rax), %rdx
	addq	$1, %rax
	movq	$-1, %rcx
	cmpb	$31, %dl
	jg	.L8
.L70:
	xorl	%ecx, %ecx
	movl	$9, %r14d
	rep bsfq	%r11, %rcx
	sarq	%cl, %r11
	movslq	%ecx, %rdx
	addq	%rsi, %rdx
	movq	%r11, %rcx
	movl	$9, %r11d
	cmpq	%r11, %rdx
	cmovg	%r11, %rdx
	movq	%rax, %r11
	leaq	9(%rdx), %r13
	subq	%rdx, %r14
	movq	%rcx, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	cmpq	%r9, %rdx
	ja	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rcx, %rax
	addq	$1, %rsi
	imulq	%r10
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	%rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rdi, %rax
	addq	%r8, %rax
	cmpq	%r9, %rax
	jbe	.L10
.L9:
	movl	$9, %eax
	leaq	0(%r13,%r13,4), %rdx
	cmpq	%rax, %rsi
	cmovle	%rsi, %rax
	leaq	cnt(%rip), %rsi
	addq	$1, %r12
	leaq	9(%rax,%rdx,4), %rdx
	addq	$1, (%rsi,%rdx,8)
	movl	$9, %edx
	subq	%rax, %rdx
	leaq	(%r14,%r14,4), %rax
	leaq	(%rdx,%rax,4), %rax
	addq	$1, (%r15,%rax,8)
	cmpq	%rbx, %r12
	jne	.L5
.L6:
	leaq	sum(%rip), %r9
	leaq	152(%r9), %rsi
	leaq	3200(%rsi), %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-144(%rsi), %rax
	addq	-152(%rsi), %rax
	leaq	-144(%rsi), %rcx
	movq	%rax, -144(%rsi)
.L13:
	addq	8(%rcx), %rax
	leaq	8(%rcx), %rdx
	movq	%rax, 8(%rcx)
	addq	16(%rcx), %rax
	movq	%rax, 16(%rcx)
	addq	24(%rcx), %rax
	movq	%rax, 24(%rcx)
	addq	24(%rdx), %rax
	leaq	64(%rdx), %rcx
	movq	%rax, 24(%rdx)
	addq	32(%rdx), %rax
	movq	%rax, 32(%rdx)
	addq	40(%rdx), %rax
	movq	%rax, 40(%rdx)
	addq	48(%rdx), %rax
	movq	%rax, 48(%rdx)
	addq	56(%rdx), %rax
	movq	%rax, 56(%rdx)
	addq	64(%rdx), %rax
	movq	%rax, 64(%rdx)
	cmpq	%rcx, %rsi
	jne	.L13
	leaq	224(%rdx), %rsi
	cmpq	%rsi, %rdi
	jne	.L12
	leaq	sum(%rip), %rax
	movl	$1, %ecx
.L14:
	vmovdqa	160(%rax), %ymm5
	vpaddq	(%rax), %ymm5, %ymm5
	leaq	320(%rax), %rdx
	addq	$640, %rax
	vmovdqa	-448(%rax), %ymm4
	vmovdqa	-352(%rax), %xmm1
	addl	$6, %ecx
	vpaddq	-608(%rax), %ymm4, %ymm4
	vpaddq	-512(%rax), %xmm1, %xmm1
	vmovdqa	%ymm5, -480(%rax)
	vmovdqa	-336(%rax), %xmm0
	vpaddq	-320(%rax), %ymm5, %ymm5
	vpaddq	-496(%rax), %xmm0, %xmm0
	vmovdqa	-576(%rax), %ymm3
	vmovdqa	%ymm4, -448(%rax)
	vpaddq	-416(%rax), %ymm3, %ymm3
	vmovdqa	-544(%rax), %ymm2
	vmovdqa	%ymm5, -320(%rax)
	vpaddq	-384(%rax), %ymm2, %ymm2
	vpaddq	-288(%rax), %ymm4, %ymm4
	vmovdqa	%xmm1, -352(%rax)
	vmovdqa	%ymm3, -416(%rax)
	vpaddq	-192(%rax), %xmm1, %xmm1
	vpaddq	-256(%rax), %ymm3, %ymm3
	vmovdqa	%ymm2, -384(%rax)
	vpaddq	-160(%rax), %ymm5, %ymm5
	vpaddq	-224(%rax), %ymm2, %ymm2
	vmovdqa	%xmm0, -336(%rax)
	vpaddq	-176(%rax), %xmm0, %xmm0
	vmovdqa	%ymm4, -288(%rax)
	vpaddq	-128(%rax), %ymm4, %ymm4
	vmovdqa	%ymm3, -256(%rax)
	vmovdqa	%ymm2, -224(%rax)
	vmovdqa	%xmm1, -192(%rax)
	vmovdqa	%xmm0, -176(%rax)
	vmovdqa	%ymm5, 160(%rdx)
	vpaddq	224(%rdx), %ymm3, %ymm3
	vpaddq	256(%rdx), %ymm2, %ymm2
	vpaddq	288(%rdx), %xmm1, %xmm1
	vpaddq	304(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm4, 192(%rdx)
	vmovdqa	%ymm3, 224(%rdx)
	vpaddq	352(%rdx), %ymm4, %ymm4
	vpaddq	320(%rdx), %ymm5, %ymm5
	vmovdqa	%ymm2, 256(%rdx)
	vpaddq	384(%rdx), %ymm3, %ymm3
	vpaddq	416(%rdx), %ymm2, %ymm2
	vmovdqa	%xmm1, 288(%rdx)
	vpaddq	448(%rdx), %xmm1, %xmm1
	vmovdqa	%xmm0, 304(%rdx)
	vpaddq	464(%rdx), %xmm0, %xmm0
	vmovdqa	%ymm2, 416(%rdx)
	vmovdqa	%xmm1, 448(%rdx)
	vmovdqa	%xmm0, 464(%rdx)
	vmovdqa	%ymm5, 320(%rdx)
	vmovdqa	%ymm4, 352(%rdx)
	vmovdqa	%ymm3, 384(%rdx)
	vmovdqa	160(%rax), %ymm5
	vmovdqa	192(%rax), %ymm4
	vpaddq	(%rax), %ymm5, %ymm5
	vpaddq	32(%rax), %ymm4, %ymm4
	vmovdqa	64(%rax), %ymm3
	vmovdqa	%ymm5, 160(%rax)
	vpaddq	320(%rax), %ymm5, %ymm5
	vmovdqa	%ymm4, 192(%rax)
	vpaddq	352(%rax), %ymm4, %ymm4
	vmovdqa	%ymm5, 320(%rax)
	vmovdqa	%ymm4, 352(%rax)
	vpaddq	224(%rax), %ymm3, %ymm3
	vmovdqa	288(%rax), %xmm1
	vmovdqa	304(%rax), %xmm0
	vpaddq	128(%rax), %xmm1, %xmm1
	vpaddq	144(%rax), %xmm0, %xmm0
	vmovdqa	96(%rax), %ymm2
	vmovdqa	%ymm3, 224(%rax)
	vpaddq	256(%rax), %ymm2, %ymm2
	vpaddq	384(%rax), %ymm3, %ymm3
	vmovdqa	%xmm1, 288(%rax)
	vmovdqa	%xmm0, 304(%rax)
	vpaddq	448(%rax), %xmm1, %xmm1
	vpaddq	464(%rax), %xmm0, %xmm0
	vmovdqa	%ymm2, 256(%rax)
	vpaddq	416(%rax), %ymm2, %ymm2
	vmovdqa	%ymm3, 384(%rax)
	vmovdqa	%ymm2, 416(%rax)
	vmovdqa	%xmm1, 448(%rax)
	vmovdqa	%xmm0, 464(%rax)
	leaq	640(%rdx), %rax
	cmpl	$19, %ecx
	jne	.L14
	vmovdqa	3040+sum(%rip), %ymm6
	vpaddq	2880+sum(%rip), %ymm6, %ymm0
	leaq	cnt(%rip), %r10
	xorl	%r11d, %r11d
	vmovdqa	3072+sum(%rip), %ymm7
	vmovdqa	2944+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3040+sum(%rip)
	vpaddq	2912+sum(%rip), %ymm7, %ymm0
	vmovdqa	2976+sum(%rip), %ymm7
	movq	ans(%rip), %rsi
	vmovdqa	%ymm0, 3072+sum(%rip)
	vpaddq	3104+sum(%rip), %ymm6, %ymm0
	vmovdqa	3008+sum(%rip), %ymm6
	vmovdqa	%ymm0, 3104+sum(%rip)
	vpaddq	3136+sum(%rip), %ymm7, %ymm0
	vmovdqa	%ymm0, 3136+sum(%rip)
	vpaddq	3168+sum(%rip), %ymm6, %ymm0
	vmovdqa	%ymm0, 3168+sum(%rip)
	.p2align 4,,10
	.p2align 3
.L15:
	movq	(%r9), %rax
	imulq	(%r10), %rax
	addq	%rax, %rsi
	movl	$1, %eax
.L18:
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L17
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L17:
	leaq	1(%rax), %rdi
	movq	(%r10,%rdi,8), %rdx
	movq	(%r9,%rdi,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %edi
	jle	.L38
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L38:
	leaq	1(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L40
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L40:
	leaq	2(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L42
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L42:
	leaq	3(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L44
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L44:
	leaq	4(%rdi), %rax
	movq	(%r10,%rax,8), %rdx
	movq	(%r9,%rax,8), %rcx
	imulq	%rdx, %rcx
	addq	%rcx, %rsi
	cmpl	$8, %eax
	jle	.L46
	cmpl	$8, %r11d
	movq	%rsi, %rcx
	setg	%r8b
	subq	%rdx, %rcx
	testb	%r8b, %r8b
	cmovne	%rcx, %rsi
.L46:
	leaq	5(%rdi), %rax
	cmpq	$14, %rdi
	jne	.L18
	addl	$1, %r11d
	addq	$160, %r9
	addq	$160, %r10
	cmpl	$19, %r11d
	jne	.L15
	movq	%rsi, ans(%rip)
	leaq	.LC0(%rip), %rdi
	sarq	%rsi
	xorl	%eax, %eax
	vzeroupper
	call	printf@PLT
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L69:
	.cfi_restore_state
	movq	%rax, %r11
	xorl	%r14d, %r14d
	movl	$18, %r13d
	jmp	.L10
	.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:
