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

```c
#include<stdio.h>

struct edge{
		int from;
		int to;
		int cost;
};

struct edge es[2000];

int d[1000];
int n,m;
int co[100][100];
#define inf 200000000
#define min(a,b) ((a)<(b)?(a):(b))

void shortest(int s){
		int i;
		int f=0;
		for(i=0;i<=n;i++)d[i]=inf;
		d[s]=0;
		while(1){
				f=0;
				for(i=0;i<m;i++){
						struct edge e;
						e.from=es[i].from;
						e.to=es[i].to;
						e.cost=es[i].cost;
						if(d[e.from]!=inf&&d[e.to]>d[e.from]+e.cost){
								d[e.to]=d[e.from]+e.cost;
								f=1;
						}if(d[e.to]!=inf&&d[e.from]>d[e.to]+e.cost){
								d[e.from]=d[e.to]+e.cost;
								f=1;
						}
				}
				if(f==0)break;
		}
		for(i=0;i<n;i++){
				co[s][i]=min(co[s][i],d[i]);
				co[i][s]=co[s][i];
		}
}
int main(){
		int i,j;
		scanf("%d%d",&n,&m);
		for(i=0;i<m;i++){
				scanf("%d%d%d",&es[i].from,&es[i].to,&es[i].cost);
				es[i].from--;
				es[i].to--;
			}
		for(i=0;i<100;i++){
				for(j=0;j<100;j++){
						co[i][j]=inf;
				}
		}
		for(i=0;i<n;i++)shortest(i);
		int ans=m,anss[1000]={0};
		for(i=0;i<m;i++){
			for(j=0;j<n;j++){
				if(co[j][es[i].from]+es[i].cost==co[j][es[i].to])anss[i]=1;
			}
		}
		for(i=0;i<m;i++){
			ans-=anss[i];
		}
		/*for(i=0;i<n;i++){
			for(j=0;j<n;j++){
				printf("%d,",co[i][j]);
			}puts("");
		}*/
		printf("%d\n",ans);
		return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	es
	.bss
	.align 32
	.type	es, @object
	.size	es, 24000
es:
	.zero	24000
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 4000
d:
	.zero	4000
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	co
	.align 32
	.type	co, @object
	.size	co, 40000
co:
	.zero	40000
	.text
	.globl	shortest
	.type	shortest, @function
shortest:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L2
.L3:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	$200000000, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L3
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	$0, (%rdx,%rax)
.L10:
	movl	$0, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L4
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$200000000, %eax
	je	.L5
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jle	.L5
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	$1, -16(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$200000000, %eax
	je	.L6
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jle	.L6
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	$1, -16(%rbp)
.L6:
	addl	$1, -20(%rbp)
.L4:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L7
	cmpl	$0, -16(%rbp)
	je	.L14
	jmp	.L10
.L14:
	nop
	movl	$0, -20(%rbp)
	jmp	.L11
.L12:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	co(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	co(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	co(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -20(%rbp)
.L11:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L12
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	shortest, .-shortest
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4032, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4028(%rbp)
	jmp	.L16
.L17:
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	es(%rip), %rdx
	addq	%rdx, %rax
	leaq	8(%rax), %rcx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	es(%rip), %rdx
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	leaq	es(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -4028(%rbp)
.L16:
	movl	m(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L17
	movl	$0, -4028(%rbp)
	jmp	.L18
.L21:
	movl	$0, -4024(%rbp)
	jmp	.L19
.L20:
	movl	-4024(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	$200000000, (%rdx,%rax)
	addl	$1, -4024(%rbp)
.L19:
	cmpl	$99, -4024(%rbp)
	jle	.L20
	addl	$1, -4028(%rbp)
.L18:
	cmpl	$99, -4028(%rbp)
	jle	.L21
	movl	$0, -4028(%rbp)
	jmp	.L22
.L23:
	movl	-4028(%rbp), %eax
	movl	%eax, %edi
	call	shortest
	addl	$1, -4028(%rbp)
.L22:
	movl	n(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L23
	movl	m(%rip), %eax
	movl	%eax, -4020(%rbp)
	leaq	-4016(%rbp), %rdx
	movl	$0, %eax
	movl	$500, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -4028(%rbp)
	jmp	.L24
.L28:
	movl	$0, -4024(%rbp)
	jmp	.L25
.L27:
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rcx
	movl	-4024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-4024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	jne	.L26
	movl	-4028(%rbp), %eax
	cltq
	movl	$1, -4016(%rbp,%rax,4)
.L26:
	addl	$1, -4024(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L27
	addl	$1, -4028(%rbp)
.L24:
	movl	m(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L28
	movl	$0, -4028(%rbp)
	jmp	.L29
.L30:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	subl	%eax, -4020(%rbp)
	addl	$1, -4028(%rbp)
.L29:
	movl	m(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L30
	movl	-4020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.globl	shortest
	.type	shortest, @function
shortest:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	n(%rip), %ebx
	testl	%ebx, %ebx
	js	.L44
	leal	1(%rbx), %ecx
	cmpl	$2, %ebx
	jle	.L21
	movl	%ecx, %edx
	leaq	d(%rip), %rdi
	movdqa	.LC0(%rip), %xmm0
	shrl	$2, %edx
	leaq	16(%rdi), %rsi
	movq	%rdi, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L5
	movl	%ecx, %eax
	andl	$-4, %eax
	andl	$3, %ecx
	je	.L7
.L4:
	movslq	%eax, %rdx
	movl	$200000000, (%rdi,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ebx
	jl	.L7
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$200000000, (%rdi,%rdx,4)
	cmpl	%eax, %ebx
	jl	.L7
	cltq
	movl	$200000000, (%rdi,%rax,4)
.L7:
	movl	m(%rip), %r12d
	leaq	es(%rip), %r13
	movl	$0, (%rdi,%rbp,4)
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %rdx
	leaq	12(%r13), %rax
	leaq	(%rax,%rdx,4), %r10
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%r12d, %r12d
	jle	.L14
	movq	%r13, %rax
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	(%rax), %r8
	movslq	4(%rax), %r9
	movl	8(%rax), %ecx
	movl	(%rdi,%r8,4), %edx
	movl	(%rdi,%r9,4), %esi
	cmpl	$200000000, %edx
	je	.L12
	addl	%ecx, %edx
	cmpl	%esi, %edx
	jge	.L12
	movl	%edx, (%rdi,%r9,4)
	movl	%edx, %esi
	movl	$1, %r11d
.L12:
	cmpl	$200000000, %esi
	je	.L13
	addl	%esi, %ecx
	cmpl	%ecx, (%rdi,%r8,4)
	jle	.L13
	movl	%ecx, (%rdi,%r8,4)
	movl	$1, %r11d
.L13:
	addq	$12, %rax
	cmpq	%r10, %rax
	jne	.L9
	testl	%r11d, %r11d
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	testl	%ebx, %ebx
	jle	.L1
	movslq	%ebx, %rcx
	leaq	0(,%rbp,4), %rdx
	leal	-1(%rbx), %r8d
	leaq	(%rdx,%rbp), %rax
	leaq	(%rcx,%rcx,4), %rsi
	leaq	(%rax,%rax,4), %r9
	leaq	(%rsi,%rsi,4), %rsi
	movq	%r9, %rax
	leaq	0(%rbp,%rsi,4), %rsi
	leaq	(%rcx,%r9,4), %rcx
	leaq	-396(,%rsi,4), %rsi
	salq	$4, %rax
	cmpq	%rax, %rsi
	setle	%sil
	salq	$2, %rcx
	cmpq	%rdx, %rcx
	setle	%cl
	orb	%cl, %sil
	je	.L15
	cmpl	$2, %r8d
	jbe	.L15
	movl	%ebx, %esi
	leaq	co(%rip), %r8
	shrl	$2, %esi
	leaq	(%r8,%rax), %rcx
	addq	%r8, %rdx
	xorl	%eax, %eax
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L16:
	movdqa	(%rdi,%rax), %xmm0
	movdqa	(%rcx,%rax), %xmm1
	addq	$1600, %rdx
	pcmpgtd	(%rcx,%rax), %xmm0
	pand	%xmm0, %xmm1
	pandn	(%rdi,%rax), %xmm0
	por	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1
	movaps	%xmm0, (%rcx,%rax)
	addq	$16, %rax
	movd	%xmm1, -1200(%rdx)
	movdqa	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm1
	movd	%xmm0, -1600(%rdx)
	pshufd	$255, %xmm0, %xmm0
	movd	%xmm1, -800(%rdx)
	movd	%xmm0, -400(%rdx)
	cmpq	%rsi, %rax
	jne	.L16
	movl	%ebx, %eax
	andl	$-4, %eax
	testb	$3, %bl
	je	.L1
	leaq	0(%rbp,%rbp,4), %rdx
	movslq	%eax, %rsi
	leaq	(%rdx,%rdx,4), %rdx
	movl	(%rdi,%rsi,4), %r10d
	salq	$2, %rdx
	leaq	(%rdx,%rsi), %r9
	leaq	(%rsi,%rsi,4), %rsi
	movl	(%r8,%r9,4), %ecx
	leaq	(%rsi,%rsi,4), %rsi
	leaq	0(%rbp,%rsi,4), %rsi
	cmpl	%r10d, %ecx
	cmovg	%r10d, %ecx
	movl	%ecx, (%r8,%r9,4)
	movl	%ecx, (%r8,%rsi,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L1
	movslq	%ecx, %rcx
	leaq	(%rdx,%rcx), %r9
	movl	(%rdi,%rcx,4), %r10d
	leaq	(%rcx,%rcx,4), %rcx
	movl	(%r8,%r9,4), %esi
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%rbp,%rcx,4), %rcx
	cmpl	%r10d, %esi
	cmovg	%r10d, %esi
	addl	$2, %eax
	movl	%esi, (%r8,%r9,4)
	movl	%esi, (%r8,%rcx,4)
	cmpl	%eax, %ebx
	jle	.L1
	cltq
	addq	%rax, %rdx
	movl	(%rdi,%rax,4), %ecx
	leaq	(%rax,%rax,4), %rax
	movl	(%r8,%rdx,4), %esi
	leaq	(%rax,%rax,4), %rax
	leaq	0(%rbp,%rax,4), %rax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	movl	%ecx, (%r8,%rdx,4)
	movl	%ecx, (%r8,%rax,4)
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	leaq	co(%rip), %rcx
	leaq	d(%rip), %rsi
	addq	%rcx, %rax
	addq	%rdx, %rcx
	leaq	4(%rsi), %rdx
	leaq	(%rdx,%r8,4), %r8
	.p2align 4,,10
	.p2align 3
.L19:
	movl	(%rax), %edi
	movl	(%rsi), %edx
	cmpl	%edi, %edx
	cmovg	%edi, %edx
	addq	$4, %rsi
	addq	$4, %rax
	addq	$400, %rcx
	movl	%edx, -4(%rax)
	movl	%edx, -400(%rcx)
	cmpq	%r8, %rsi
	jne	.L19
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L44:
	.cfi_restore_state
	leaq	d(%rip), %rdi
	jmp	.L7
.L21:
	xorl	%eax, %eax
	leaq	d(%rip), %rdi
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	shortest, .-shortest
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%d%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC1(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4016, %rsp
	.cfi_def_cfa_offset 4064
	movq	%fs:40, %rax
	movq	%rax, 4008(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	testl	%edx, %edx
	jle	.L46
	movq	.LC3(%rip), %r12
	leaq	es(%rip), %rbx
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r13
.L47:
	leaq	8(%rbx), %rcx
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	addl	$1, %ebp
	addq	$12, %rbx
	call	__isoc99_scanf@PLT
	movq	-12(%rbx), %xmm0
	movq	%r12, %xmm2
	paddd	%xmm2, %xmm0
	movq	%xmm0, -12(%rbx)
	cmpl	%ebp, m(%rip)
	jg	.L47
.L46:
	leaq	co(%rip), %rbp
	movdqa	.LC0(%rip), %xmm0
	leaq	400(%rbp), %rbx
	movq	%rbp, %rcx
	leaq	40400(%rbp), %rsi
	movq	%rbx, %rdx
.L49:
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L48:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L48
	leaq	400(%rax), %rdx
	addq	$400, %rcx
	cmpq	%rsi, %rdx
	jne	.L49
	movl	n(%rip), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	.L78
.L50:
	movl	%r12d, %edi
	addl	$1, %r12d
	call	shortest
	movl	n(%rip), %r8d
	cmpl	%r12d, %r8d
	jg	.L50
	movq	%rsp, %rsi
	movl	m(%rip), %edx
	movl	$500, %ecx
	xorl	%eax, %eax
	movq	%rsi, %rdi
	rep stosq
	testl	%edx, %edx
	jle	.L52
	testl	%r8d, %r8d
	jle	.L79
	leal	-1(%rdx), %eax
	leaq	es(%rip), %r11
	movq	%rsi, %r10
	movq	%rax, %r12
	leaq	4(%rsp,%rax,4), %r14
	leal	-1(%r8), %eax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %r13
	salq	$2, %r13
.L54:
	movslq	(%r11), %rcx
	movl	8(%r11), %r9d
	leaq	(%rcx,%r13), %rdi
	leaq	0(%rbp,%rcx,4), %rax
	leaq	(%rbx,%rdi,4), %r8
	movslq	4(%r11), %rdi
	subq	%rcx, %rdi
.L56:
	movl	(%rax), %ecx
	addl	%r9d, %ecx
	cmpl	(%rax,%rdi,4), %ecx
	jne	.L55
	movl	$1, (%r10)
.L55:
	addq	$400, %rax
	cmpq	%r8, %rax
	jne	.L56
	addq	$4, %r10
	addq	$12, %r11
	cmpq	%r14, %r10
	jne	.L54
.L53:
	movl	%edx, %eax
	cmpl	$2, %r12d
	jbe	.L63
	shrl	$2, %eax
	pxor	%xmm0, %xmm0
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rsp,%rax), %rax
.L58:
	psubd	(%rsi), %xmm0
	addq	$16, %rsi
	cmpq	%rsi, %rax
	jne	.L58
	movdqa	%xmm0, %xmm1
	movl	%edx, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%edx, %eax
	testb	$3, %dl
	je	.L60
.L57:
	movslq	%ecx, %rsi
	subl	(%rsp,%rsi,4), %eax
	leal	1(%rcx), %esi
	cmpl	%edx, %esi
	jge	.L60
	movslq	%esi, %rsi
	addl	$2, %ecx
	subl	(%rsp,%rsi,4), %eax
	cmpl	%edx, %ecx
	jge	.L60
	movslq	%ecx, %rcx
	subl	(%rsp,%rcx,4), %eax
.L60:
	movl	%eax, %edx
.L52:
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	4008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L80
	addq	$4016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L78:
	.cfi_restore_state
	movl	m(%rip), %edx
	movq	%rsp, %rsi
	movl	$500, %ecx
	xorl	%eax, %eax
	movq	%rsi, %rdi
	rep stosq
	leal	-1(%rdx), %r12d
	testl	%edx, %edx
	jg	.L53
	jmp	.L52
.L63:
	xorl	%ecx, %ecx
	jmp	.L57
.L79:
	leal	-1(%rdx), %r12d
	jmp	.L53
.L80:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	co
	.bss
	.align 32
	.type	co, @object
	.size	co, 40000
co:
	.zero	40000
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 4000
d:
	.zero	4000
	.globl	es
	.align 32
	.type	es, @object
	.size	es, 24000
es:
	.zero	24000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	200000000
	.long	200000000
	.long	200000000
	.long	200000000
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	-1
	.long	-1
	.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
	.globl	shortest
	.type	shortest, @function
shortest:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movslq	%edi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	n(%rip), %ebx
	testl	%ebx, %ebx
	js	.L44
	leal	1(%rbx), %ecx
	cmpl	$2, %ebx
	jle	.L21
	movl	%ecx, %edx
	leaq	d(%rip), %rdi
	movdqa	.LC0(%rip), %xmm0
	shrl	$2, %edx
	leaq	16(%rdi), %rsi
	movq	%rdi, %rax
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rsi, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L5
	movl	%ecx, %eax
	andl	$-4, %eax
	andl	$3, %ecx
	je	.L7
.L4:
	movslq	%eax, %rdx
	movl	$200000000, (%rdi,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %ebx
	jl	.L7
	movslq	%edx, %rdx
	addl	$2, %eax
	movl	$200000000, (%rdi,%rdx,4)
	cmpl	%eax, %ebx
	jl	.L7
	cltq
	movl	$200000000, (%rdi,%rax,4)
.L7:
	movl	m(%rip), %r12d
	leaq	es(%rip), %r13
	movl	$0, (%rdi,%rbp,4)
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %rdx
	leaq	12(%r13), %rax
	leaq	(%rax,%rdx,4), %r10
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%r12d, %r12d
	jle	.L14
	movq	%r13, %rax
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	(%rax), %r8
	movslq	4(%rax), %r9
	movl	8(%rax), %ecx
	movl	(%rdi,%r8,4), %edx
	movl	(%rdi,%r9,4), %esi
	cmpl	$200000000, %edx
	je	.L12
	addl	%ecx, %edx
	cmpl	%esi, %edx
	jge	.L12
	movl	%edx, (%rdi,%r9,4)
	movl	%edx, %esi
	movl	$1, %r11d
.L12:
	cmpl	$200000000, %esi
	je	.L13
	addl	%esi, %ecx
	cmpl	%ecx, (%rdi,%r8,4)
	jle	.L13
	movl	%ecx, (%rdi,%r8,4)
	movl	$1, %r11d
.L13:
	addq	$12, %rax
	cmpq	%r10, %rax
	jne	.L9
	testl	%r11d, %r11d
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	testl	%ebx, %ebx
	jle	.L1
	movslq	%ebx, %rcx
	leaq	0(,%rbp,4), %rdx
	leal	-1(%rbx), %r8d
	leaq	(%rdx,%rbp), %rax
	leaq	(%rcx,%rcx,4), %rsi
	leaq	(%rax,%rax,4), %r9
	leaq	(%rsi,%rsi,4), %rsi
	movq	%r9, %rax
	leaq	0(%rbp,%rsi,4), %rsi
	leaq	(%rcx,%r9,4), %rcx
	leaq	-396(,%rsi,4), %rsi
	salq	$4, %rax
	cmpq	%rax, %rsi
	setle	%sil
	salq	$2, %rcx
	cmpq	%rdx, %rcx
	setle	%cl
	orb	%cl, %sil
	je	.L15
	cmpl	$2, %r8d
	jbe	.L15
	movl	%ebx, %esi
	leaq	co(%rip), %r8
	shrl	$2, %esi
	leaq	(%r8,%rax), %rcx
	addq	%r8, %rdx
	xorl	%eax, %eax
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L16:
	movdqa	(%rdi,%rax), %xmm0
	movdqa	(%rcx,%rax), %xmm1
	addq	$1600, %rdx
	pcmpgtd	(%rcx,%rax), %xmm0
	pand	%xmm0, %xmm1
	pandn	(%rdi,%rax), %xmm0
	por	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1
	movaps	%xmm0, (%rcx,%rax)
	addq	$16, %rax
	movd	%xmm1, -1200(%rdx)
	movdqa	%xmm0, %xmm1
	punpckhdq	%xmm0, %xmm1
	movd	%xmm0, -1600(%rdx)
	pshufd	$255, %xmm0, %xmm0
	movd	%xmm1, -800(%rdx)
	movd	%xmm0, -400(%rdx)
	cmpq	%rsi, %rax
	jne	.L16
	movl	%ebx, %eax
	andl	$-4, %eax
	testb	$3, %bl
	je	.L1
	leaq	0(%rbp,%rbp,4), %rdx
	movslq	%eax, %rsi
	leaq	(%rdx,%rdx,4), %rdx
	movl	(%rdi,%rsi,4), %r10d
	salq	$2, %rdx
	leaq	(%rdx,%rsi), %r9
	leaq	(%rsi,%rsi,4), %rsi
	movl	(%r8,%r9,4), %ecx
	leaq	(%rsi,%rsi,4), %rsi
	leaq	0(%rbp,%rsi,4), %rsi
	cmpl	%r10d, %ecx
	cmovg	%r10d, %ecx
	movl	%ecx, (%r8,%r9,4)
	movl	%ecx, (%r8,%rsi,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	.L1
	movslq	%ecx, %rcx
	leaq	(%rdx,%rcx), %r9
	movl	(%rdi,%rcx,4), %r10d
	leaq	(%rcx,%rcx,4), %rcx
	movl	(%r8,%r9,4), %esi
	leaq	(%rcx,%rcx,4), %rcx
	leaq	0(%rbp,%rcx,4), %rcx
	cmpl	%r10d, %esi
	cmovg	%r10d, %esi
	addl	$2, %eax
	movl	%esi, (%r8,%r9,4)
	movl	%esi, (%r8,%rcx,4)
	cmpl	%eax, %ebx
	jle	.L1
	cltq
	addq	%rax, %rdx
	movl	(%rdi,%rax,4), %ecx
	leaq	(%rax,%rax,4), %rax
	movl	(%r8,%rdx,4), %esi
	leaq	(%rax,%rax,4), %rax
	leaq	0(%rbp,%rax,4), %rax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	movl	%ecx, (%r8,%rdx,4)
	movl	%ecx, (%r8,%rax,4)
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	leaq	co(%rip), %rcx
	leaq	d(%rip), %rsi
	addq	%rcx, %rax
	addq	%rdx, %rcx
	leaq	4(%rsi), %rdx
	leaq	(%rdx,%r8,4), %r8
	.p2align 4,,10
	.p2align 3
.L19:
	movl	(%rax), %edi
	movl	(%rsi), %edx
	cmpl	%edi, %edx
	cmovg	%edi, %edx
	addq	$4, %rsi
	addq	$4, %rax
	addq	$400, %rcx
	movl	%edx, -4(%rax)
	movl	%edx, -400(%rcx)
	cmpq	%r8, %rsi
	jne	.L19
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L44:
	.cfi_restore_state
	leaq	d(%rip), %rdi
	jmp	.L7
.L21:
	xorl	%eax, %eax
	leaq	d(%rip), %rdi
	jmp	.L4
	.cfi_endproc
.LFE23:
	.size	shortest, .-shortest
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%d%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC1(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4016, %rsp
	.cfi_def_cfa_offset 4064
	movq	%fs:40, %rax
	movq	%rax, 4008(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	testl	%edx, %edx
	jle	.L46
	movq	.LC3(%rip), %r12
	leaq	es(%rip), %rbx
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r13
.L47:
	leaq	8(%rbx), %rcx
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	addl	$1, %ebp
	addq	$12, %rbx
	call	__isoc99_scanf@PLT
	movq	-12(%rbx), %xmm0
	movq	%r12, %xmm2
	paddd	%xmm2, %xmm0
	movq	%xmm0, -12(%rbx)
	cmpl	%ebp, m(%rip)
	jg	.L47
.L46:
	leaq	co(%rip), %rbp
	movdqa	.LC0(%rip), %xmm0
	leaq	400(%rbp), %rbx
	movq	%rbp, %rcx
	leaq	40400(%rbp), %rsi
	movq	%rbx, %rdx
.L49:
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L48:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L48
	leaq	400(%rax), %rdx
	addq	$400, %rcx
	cmpq	%rsi, %rdx
	jne	.L49
	movl	n(%rip), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	.L78
.L50:
	movl	%r12d, %edi
	addl	$1, %r12d
	call	shortest
	movl	n(%rip), %r8d
	cmpl	%r12d, %r8d
	jg	.L50
	movq	%rsp, %rsi
	movl	m(%rip), %edx
	movl	$500, %ecx
	xorl	%eax, %eax
	movq	%rsi, %rdi
	rep stosq
	testl	%edx, %edx
	jle	.L52
	testl	%r8d, %r8d
	jle	.L79
	leal	-1(%rdx), %eax
	leaq	es(%rip), %r11
	movq	%rsi, %r10
	movq	%rax, %r12
	leaq	4(%rsp,%rax,4), %r14
	leal	-1(%r8), %eax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %r13
	salq	$2, %r13
.L54:
	movslq	(%r11), %rcx
	movl	8(%r11), %r9d
	leaq	(%rcx,%r13), %rdi
	leaq	0(%rbp,%rcx,4), %rax
	leaq	(%rbx,%rdi,4), %r8
	movslq	4(%r11), %rdi
	subq	%rcx, %rdi
.L56:
	movl	(%rax), %ecx
	addl	%r9d, %ecx
	cmpl	(%rax,%rdi,4), %ecx
	jne	.L55
	movl	$1, (%r10)
.L55:
	addq	$400, %rax
	cmpq	%r8, %rax
	jne	.L56
	addq	$4, %r10
	addq	$12, %r11
	cmpq	%r14, %r10
	jne	.L54
.L53:
	movl	%edx, %eax
	cmpl	$2, %r12d
	jbe	.L63
	shrl	$2, %eax
	pxor	%xmm0, %xmm0
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rsp,%rax), %rax
.L58:
	psubd	(%rsi), %xmm0
	addq	$16, %rsi
	cmpq	%rsi, %rax
	jne	.L58
	movdqa	%xmm0, %xmm1
	movl	%edx, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%edx, %eax
	testb	$3, %dl
	je	.L60
.L57:
	movslq	%ecx, %rsi
	subl	(%rsp,%rsi,4), %eax
	leal	1(%rcx), %esi
	cmpl	%edx, %esi
	jge	.L60
	movslq	%esi, %rsi
	addl	$2, %ecx
	subl	(%rsp,%rsi,4), %eax
	cmpl	%edx, %ecx
	jge	.L60
	movslq	%ecx, %rcx
	subl	(%rsp,%rcx,4), %eax
.L60:
	movl	%eax, %edx
.L52:
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	4008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L80
	addq	$4016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L78:
	.cfi_restore_state
	movl	m(%rip), %edx
	movq	%rsp, %rsi
	movl	$500, %ecx
	xorl	%eax, %eax
	movq	%rsi, %rdi
	rep stosq
	leal	-1(%rdx), %r12d
	testl	%edx, %edx
	jg	.L53
	jmp	.L52
.L63:
	xorl	%ecx, %ecx
	jmp	.L57
.L79:
	leal	-1(%rdx), %r12d
	jmp	.L53
.L80:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	co
	.bss
	.align 32
	.type	co, @object
	.size	co, 40000
co:
	.zero	40000
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 4000
d:
	.zero	4000
	.globl	es
	.align 32
	.type	es, @object
	.size	es, 24000
es:
	.zero	24000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	200000000
	.long	200000000
	.long	200000000
	.long	200000000
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	-1
	.long	-1
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>

struct edge{
		int from;
		int to;
		int cost;
};

struct edge es[2000];

int d[1000];
int n,m;
int co[100][100];
#define inf 200000000
#define min(a,b) ((a)<(b)?(a):(b))

void shortest(int s){
		int i;
		int f=0;
		for(i=0;i<=n;i++)d[i]=inf;
		d[s]=0;
		while(1){
				f=0;
				for(i=0;i<m;i++){
						struct edge e;
						e.from=es[i].from;
						e.to=es[i].to;
						e.cost=es[i].cost;
						if(d[e.from]!=inf&&d[e.to]>d[e.from]+e.cost){
								d[e.to]=d[e.from]+e.cost;
								f=1;
						}if(d[e.to]!=inf&&d[e.from]>d[e.to]+e.cost){
								d[e.from]=d[e.to]+e.cost;
								f=1;
						}
				}
				if(f==0)break;
		}
		for(i=0;i<n;i++){
				co[s][i]=min(co[s][i],d[i]);
				co[i][s]=co[s][i];
		}
}
int main(){
		int i,j;
		scanf("%d%d",&n,&m);
		for(i=0;i<m;i++){
				scanf("%d%d%d",&es[i].from,&es[i].to,&es[i].cost);
				es[i].from--;
				es[i].to--;
			}
		for(i=0;i<100;i++){
				for(j=0;j<100;j++){
						co[i][j]=inf;
				}
		}
		for(i=0;i<n;i++)shortest(i);
		int ans=m,anss[1000]={0};
		for(i=0;i<m;i++){
			for(j=0;j<n;j++){
				if(co[j][es[i].from]+es[i].cost==co[j][es[i].to])anss[i]=1;
			}
		}
		for(i=0;i<m;i++){
			ans-=anss[i];
		}
		/*for(i=0;i<n;i++){
			for(j=0;j<n;j++){
				printf("%d,",co[i][j]);
			}puts("");
		}*/
		printf("%d\n",ans);
		return 0;
}
3 3
1 2 2
1 3 1
2 3 3
 4 3
1 2 1
1 3 1
2 3 3
 3 2
1 2 2
2 3 1
 3 2
1 3 2
2 3 1
 3 2
1 3 2
2 0 1
 3 2
1 2 2
2 0 1
 3 2
2 2 2
2 0 1
 3 2
1 1 1
2 3 1
 3 3
1 2 2
1 3 1
2 3 0
 3 2
1 3 2
2 1 1

0
 1
 0
 0
 1
 2
 2
 1
 1
 0

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

```c
#include<stdio.h>

struct edge{
		int from;
		int to;
		int cost;
};

struct edge es[2000];

int d[1000];
int n,m;
int co[100][100];
#define inf 200000000
#define min(a,b) ((a)<(b)?(a):(b))

void shortest(int s){
		int i;
		int f=0;
		for(i=0;i<=n;i++)d[i]=inf;
		d[s]=0;
		while(1){
				f=0;
				for(i=0;i<m;i++){
						struct edge e;
						e.from=es[i].from;
						e.to=es[i].to;
						e.cost=es[i].cost;
						if(d[e.from]!=inf&&d[e.to]>d[e.from]+e.cost){
								d[e.to]=d[e.from]+e.cost;
								f=1;
						}if(d[e.to]!=inf&&d[e.from]>d[e.to]+e.cost){
								d[e.from]=d[e.to]+e.cost;
								f=1;
						}
				}
				if(f==0)break;
		}
		for(i=0;i<n;i++){
				co[s][i]=min(co[s][i],d[i]);
				co[i][s]=co[s][i];
		}
}
int main(){
		int i,j;
		scanf("%d%d",&n,&m);
		for(i=0;i<m;i++){
				scanf("%d%d%d",&es[i].from,&es[i].to,&es[i].cost);
				es[i].from--;
				es[i].to--;
			}
		for(i=0;i<100;i++){
				for(j=0;j<100;j++){
						co[i][j]=inf;
				}
		}
		for(i=0;i<n;i++)shortest(i);
		int ans=m,anss[1000]={0};
		for(i=0;i<m;i++){
			for(j=0;j<n;j++){
				if(co[j][es[i].from]+es[i].cost==co[j][es[i].to])anss[i]=1;
			}
		}
		for(i=0;i<m;i++){
			ans-=anss[i];
		}
		/*for(i=0;i<n;i++){
			for(j=0;j<n;j++){
				printf("%d,",co[i][j]);
			}puts("");
		}*/
		printf("%d\n",ans);
		return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	es
	.bss
	.align 32
	.type	es, @object
	.size	es, 24000
es:
	.zero	24000
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 4000
d:
	.zero	4000
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	co
	.align 32
	.type	co, @object
	.size	co, 40000
co:
	.zero	40000
	.text
	.globl	shortest
	.type	shortest, @function
shortest:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L2
.L3:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	$200000000, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L3
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	$0, (%rdx,%rax)
.L10:
	movl	$0, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L4
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$200000000, %eax
	je	.L5
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jle	.L5
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	$1, -16(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$200000000, %eax
	je	.L6
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jle	.L6
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	$1, -16(%rbp)
.L6:
	addl	$1, -20(%rbp)
.L4:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L7
	cmpl	$0, -16(%rbp)
	je	.L14
	jmp	.L10
.L14:
	nop
	movl	$0, -20(%rbp)
	jmp	.L11
.L12:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	co(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	co(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	co(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -20(%rbp)
.L11:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L12
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	shortest, .-shortest
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4032, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4028(%rbp)
	jmp	.L16
.L17:
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	es(%rip), %rdx
	addq	%rdx, %rax
	leaq	8(%rax), %rcx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	es(%rip), %rdx
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	leaq	es(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -4028(%rbp)
.L16:
	movl	m(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L17
	movl	$0, -4028(%rbp)
	jmp	.L18
.L21:
	movl	$0, -4024(%rbp)
	jmp	.L19
.L20:
	movl	-4024(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	$200000000, (%rdx,%rax)
	addl	$1, -4024(%rbp)
.L19:
	cmpl	$99, -4024(%rbp)
	jle	.L20
	addl	$1, -4028(%rbp)
.L18:
	cmpl	$99, -4028(%rbp)
	jle	.L21
	movl	$0, -4028(%rbp)
	jmp	.L22
.L23:
	movl	-4028(%rbp), %eax
	movl	%eax, %edi
	call	shortest
	addl	$1, -4028(%rbp)
.L22:
	movl	n(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L23
	movl	m(%rip), %eax
	movl	%eax, -4020(%rbp)
	leaq	-4016(%rbp), %rdx
	movl	$0, %eax
	movl	$500, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -4028(%rbp)
	jmp	.L24
.L28:
	movl	$0, -4024(%rbp)
	jmp	.L25
.L27:
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rcx
	movl	-4024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-4024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	jne	.L26
	movl	-4028(%rbp), %eax
	cltq
	movl	$1, -4016(%rbp,%rax,4)
.L26:
	addl	$1, -4024(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L27
	addl	$1, -4028(%rbp)
.L24:
	movl	m(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L28
	movl	$0, -4028(%rbp)
	jmp	.L29
.L30:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	subl	%eax, -4020(%rbp)
	addl	$1, -4028(%rbp)
.L29:
	movl	m(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L30
	movl	-4020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	es
	.bss
	.align 32
	.type	es, @object
	.size	es, 24000
es:
	.zero	24000
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 4000
d:
	.zero	4000
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	co
	.align 32
	.type	co, @object
	.size	co, 40000
co:
	.zero	40000
	.text
	.globl	shortest
	.type	shortest, @function
shortest:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L2
.L3:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	$200000000, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L3
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	$0, (%rdx,%rax)
.L10:
	movl	$0, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L4
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$200000000, %eax
	je	.L5
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jle	.L5
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	$1, -16(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$200000000, %eax
	je	.L6
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	d(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jle	.L6
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	$1, -16(%rbp)
.L6:
	addl	$1, -20(%rbp)
.L4:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L7
	cmpl	$0, -16(%rbp)
	je	.L14
	jmp	.L10
.L14:
	nop
	movl	$0, -20(%rbp)
	jmp	.L11
.L12:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	co(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	co(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	co(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -20(%rbp)
.L11:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L12
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	shortest, .-shortest
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4032, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4028(%rbp)
	jmp	.L16
.L17:
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	es(%rip), %rdx
	addq	%rdx, %rax
	leaq	8(%rax), %rcx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	es(%rip), %rdx
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	leaq	es(%rip), %rsi
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -4028(%rbp)
.L16:
	movl	m(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L17
	movl	$0, -4028(%rbp)
	jmp	.L18
.L21:
	movl	$0, -4024(%rbp)
	jmp	.L19
.L20:
	movl	-4024(%rbp), %eax
	movslq	%eax, %rcx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	$200000000, (%rdx,%rax)
	addl	$1, -4024(%rbp)
.L19:
	cmpl	$99, -4024(%rbp)
	jle	.L20
	addl	$1, -4028(%rbp)
.L18:
	cmpl	$99, -4028(%rbp)
	jle	.L21
	movl	$0, -4028(%rbp)
	jmp	.L22
.L23:
	movl	-4028(%rbp), %eax
	movl	%eax, %edi
	call	shortest
	addl	$1, -4028(%rbp)
.L22:
	movl	n(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L23
	movl	m(%rip), %eax
	movl	%eax, -4020(%rbp)
	leaq	-4016(%rbp), %rdx
	movl	$0, %eax
	movl	$500, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -4028(%rbp)
	jmp	.L24
.L28:
	movl	$0, -4024(%rbp)
	jmp	.L25
.L27:
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rcx
	movl	-4024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-4028(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+es(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rsi
	movl	-4024(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	jne	.L26
	movl	-4028(%rbp), %eax
	cltq
	movl	$1, -4016(%rbp,%rax,4)
.L26:
	addl	$1, -4024(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -4024(%rbp)
	jl	.L27
	addl	$1, -4028(%rbp)
.L24:
	movl	m(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L28
	movl	$0, -4028(%rbp)
	jmp	.L29
.L30:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	subl	%eax, -4020(%rbp)
	addl	$1, -4028(%rbp)
.L29:
	movl	m(%rip), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L30
	movl	-4020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
