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

```c
// AOJ 3032 Combine Two Elements
// 2018.3.29 bal4u

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

//#define getchar_unlocked()  getchar()
int in()	/* 整数値の入力 */
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

#define MAX 1604
int  hi[MAX], to[MAX][MAX];
char seen[MAX];
int  match[MAX];

int bpm(int u);
int bipartiteMatching(int m, int n)
{
	int u, max;

	memset(match, -1, (m+n)*sizeof(int));
	max = 0;
	for (u = 0; u < m; u++) {
		memset(seen, 0, m+n);
		if (bpm(u)) max++;
	}
	return max;
}

int bpm(int u)
{
	int i, v;

	for (i = 0; i < hi[u]; i++) {
		v = to[u][i];
		if (seen[v]) continue;
		seen[v] = 1;
		if (match[v] < 0 || bpm(match[v])) {
			match[u] = v, match[v] = u;
			return 1;
		}
	}
	return 0;
}

#define ABS(a)  ((a)>=0?(a):-(a))

typedef struct { int a, b; } T;
T u[802]; int us;
T v[802]; int vs;

int main()
{
	int N, A, B, A2, i, j, a, b, d, ans;

	N = in(), A = in(), B = in(), A2 = A<<1;
	ans = 0, us = vs = 0;
	for (i = 0; i < N; i++) {
		a = in(), b = in();
		d = ABS(a-b);
		if (d <= A || (B <= d && d <= A2)) { ans++; continue; }
		if (a >= b) u[us].a = a, u[us++].b = b;
		else        v[vs].a = a, v[vs++].b = b;
	}

	for (i = 0; i < us; i++) for (j = 0; j < vs; j++) {
		a = u[i].a + v[j].a;
		b = u[i].b + v[j].b;
		d = ABS(a-b);
		if (d <= A || (B <= d && d <= A2)) to[i][hi[i]++] = us+j;
	}

	ans += bipartiteMatching(us, vs);
	printf("%d\n", ans);
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.globl	hi
	.bss
	.align 32
	.type	hi, @object
	.size	hi, 6416
hi:
	.zero	6416
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 10291264
to:
	.zero	10291264
	.globl	seen
	.align 32
	.type	seen, @object
	.size	seen, 1604
seen:
	.zero	1604
	.globl	match
	.align 32
	.type	match, @object
	.size	match, 6416
match:
	.zero	6416
	.text
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	match(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L5
.L7:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	seen(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-8(%rbp), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L6
	addl	$1, -4(%rbp)
.L6:
	addl	$1, -8(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L7
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	bipartiteMatching, .-bipartiteMatching
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L10
.L15:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1604, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L16
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	match(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L13
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	match(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L12
.L13:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	match(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	match(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, %eax
	jmp	.L14
.L16:
	nop
.L12:
	addl	$1, -8(%rbp)
.L10:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L15
	movl	$0, %eax
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	bpm, .-bpm
	.globl	u
	.bss
	.align 32
	.type	u, @object
	.size	u, 6416
u:
	.zero	6416
	.globl	us
	.align 4
	.type	us, @object
	.size	us, 4
us:
	.zero	4
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 6416
v:
	.zero	6416
	.globl	vs
	.align 4
	.type	vs, @object
	.size	vs, 4
vs:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -28(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -16(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, vs(%rip)
	movl	vs(%rip), %eax
	movl	%eax, us(%rip)
	movl	$0, -40(%rbp)
	jmp	.L18
.L23:
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L19
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L20
	movl	-4(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jg	.L20
.L19:
	addl	$1, -32(%rbp)
	jmp	.L21
.L20:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L22
	movl	us(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	u(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	us(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, us(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+u(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L21
.L22:
	movl	vs(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	v(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	vs(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, vs(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+v(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L21:
	addl	$1, -40(%rbp)
.L18:
	movl	-40(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L23
	movl	$0, -40(%rbp)
	jmp	.L24
.L29:
	movl	$0, -36(%rbp)
	jmp	.L25
.L28:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	u(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+u(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+v(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L26
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L27
	movl	-4(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jg	.L27
.L26:
	movl	us(%rip), %edi
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-40(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movl	-36(%rbp), %edx
	leal	(%rdi,%rdx), %ecx
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$1604, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L27:
	addl	$1, -36(%rbp)
.L25:
	movl	vs(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L28
	addl	$1, -40(%rbp)
.L24:
	movl	us(%rip), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L29
	movl	vs(%rip), %edx
	movl	us(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	bipartiteMatching
	addl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	in
	.type	in, @function
in:
.LFB35:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	in, .-in
	.p2align 4
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	hi(%rip), %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$344, %rsp
	.cfi_def_cfa_offset 400
	movl	%eax, 252(%rsp)
	movq	%rax, 72(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L50
	imulq	$6416, 72(%rsp), %rdx
	leaq	to(%rip), %r14
	movq	$0, 64(%rsp)
	leaq	seen(%rip), %r9
	leaq	match(%rip), %r15
	addq	%r14, %rdx
	movq	%rdx, 240(%rsp)
.L49:
	movq	240(%rsp), %rdi
	movq	64(%rsp), %rcx
	movslq	(%rdi,%rcx,4), %rsi
	cmpb	$0, (%r9,%rsi)
	movl	%esi, 168(%rsp)
	movq	%rsi, 256(%rsp)
	jne	.L15
	movslq	(%r15,%rsi,4), %rax
	movb	$1, (%r9,%rsi)
	movl	%eax, 164(%rsp)
	testl	%eax, %eax
	js	.L16
	movq	%rax, 80(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L71
	imulq	$6416, 80(%rsp), %rdx
	movq	$0, 56(%rsp)
	leaq	(%r14,%rdx), %rsi
	movq	%rsi, 232(%rsp)
.L48:
	movq	232(%rsp), %rdi
	movq	56(%rsp), %rbx
	movslq	(%rdi,%rbx,4), %rcx
	cmpb	$0, (%r9,%rcx)
	movl	%ecx, 172(%rsp)
	movq	%rcx, 264(%rsp)
	jne	.L18
	movslq	(%r15,%rcx,4), %rax
	movb	$1, (%r9,%rcx)
	movl	%eax, 176(%rsp)
	testl	%eax, %eax
	js	.L19
	movq	%rax, 88(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L70
	imulq	$6416, 88(%rsp), %rdx
	movq	$0, 48(%rsp)
	addq	%r14, %rdx
	movq	%rdx, 224(%rsp)
.L47:
	movq	224(%rsp), %rsi
	movq	48(%rsp), %rdi
	movslq	(%rsi,%rdi,4), %rbx
	cmpb	$0, (%r9,%rbx)
	movl	%ebx, 180(%rsp)
	movq	%rbx, 272(%rsp)
	jne	.L21
	movslq	(%r15,%rbx,4), %rax
	movb	$1, (%r9,%rbx)
	movl	%eax, 184(%rsp)
	testl	%eax, %eax
	js	.L22
	movq	%rax, 96(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L69
	imulq	$6416, 96(%rsp), %rdx
	movq	$0, 40(%rsp)
	leaq	(%r14,%rdx), %rcx
	movq	%rcx, 216(%rsp)
.L46:
	movq	216(%rsp), %rdx
	movq	40(%rsp), %rsi
	movslq	(%rdx,%rsi,4), %rdx
	cmpb	$0, (%r9,%rdx)
	movl	%edx, 188(%rsp)
	movq	%rdx, 280(%rsp)
	jne	.L24
	movslq	(%r15,%rdx,4), %rax
	movb	$1, (%r9,%rdx)
	movl	%eax, 192(%rsp)
	testl	%eax, %eax
	js	.L25
	movq	%rax, 104(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L68
	imulq	$6416, 104(%rsp), %rdx
	movq	$0, 32(%rsp)
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 208(%rsp)
.L45:
	movq	208(%rsp), %rcx
	movq	32(%rsp), %rdx
	movslq	(%rcx,%rdx,4), %rdi
	cmpb	$0, (%r9,%rdi)
	movl	%edi, 196(%rsp)
	movq	%rdi, 288(%rsp)
	jne	.L27
	movl	(%r15,%rdi,4), %eax
	movb	$1, (%r9,%rdi)
	movl	%eax, 124(%rsp)
	testl	%eax, %eax
	js	.L28
	movslq	%eax, %r11
	movl	(%r8,%r11,4), %eax
	testl	%eax, %eax
	jle	.L67
	imulq	$6416, %r11, %rdx
	xorl	%r13d, %r13d
	movq	%r11, %rcx
	movq	%r13, %r11
	movq	%rcx, %r13
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 128(%rsp)
	.p2align 4,,10
	.p2align 3
.L44:
	movq	128(%rsp), %rsi
	movslq	(%rsi,%r11,4), %r10
	cmpb	$0, (%r9,%r10)
	movl	%r10d, 200(%rsp)
	jne	.L30
	movl	(%r15,%r10,4), %esi
	movb	$1, (%r9,%r10)
	testl	%esi, %esi
	js	.L60
	movslq	%esi, %rcx
	movl	(%r8,%rcx,4), %eax
	testl	%eax, %eax
	jle	.L66
	imulq	$6416, %rcx, %rdx
	movq	%r11, 152(%rsp)
	movq	$0, 8(%rsp)
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 136(%rsp)
	.p2align 4,,10
	.p2align 3
.L43:
	movq	136(%rsp), %rdi
	movq	8(%rsp), %rbx
	movslq	(%rdi,%rbx,4), %rdi
	cmpb	$0, (%r9,%rdi)
	movl	%edi, 160(%rsp)
	movq	%rdi, 144(%rsp)
	jne	.L33
	movslq	(%r15,%rdi,4), %rax
	movb	$1, (%r9,%rdi)
	movl	%eax, 204(%rsp)
	testl	%eax, %eax
	js	.L61
	movq	%rax, 16(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L65
	imulq	$6416, 16(%rsp), %rdx
	xorl	%ebx, %ebx
	addq	%r14, %rdx
	movq	%rdx, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L42:
	movq	24(%rsp), %rdx
	movslq	(%rdx,%rbx,4), %rbp
	cmpb	$0, (%r9,%rbp)
	movl	%ebp, 120(%rsp)
	jne	.L36
	movslq	(%r15,%rbp,4), %rax
	movb	$1, (%r9,%rbp)
	movl	%eax, 248(%rsp)
	testl	%eax, %eax
	js	.L62
	movq	%rax, 112(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L64
	imulq	$6416, 112(%rsp), %r11
	movq	%rbp, 296(%rsp)
	xorl	%r12d, %r12d
	addq	%r14, %r11
	movq	%r11, %rbp
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	0(%rbp,%r12,4), %rdx
	cmpb	$0, (%r9,%rdx)
	movq	%rdx, %r11
	jne	.L39
	movl	(%r15,%rdx,4), %edi
	movb	$1, (%r9,%rdx)
	testl	%edi, %edi
	js	.L40
	movq	%rdx, 328(%rsp)
	movl	%edx, 324(%rsp)
	movq	%rcx, 312(%rsp)
	movq	%r10, 304(%rsp)
	movl	%esi, 320(%rsp)
	call	bpm
	movl	320(%rsp), %esi
	movq	304(%rsp), %r10
	testl	%eax, %eax
	movq	312(%rsp), %rcx
	movl	324(%rsp), %r11d
	movq	328(%rsp), %rdx
	jne	.L40
	movq	112(%rsp), %rax
	leaq	hi(%rip), %r8
	leaq	seen(%rip), %r9
	movl	(%r8,%rax,4), %eax
	.p2align 4,,10
	.p2align 3
.L39:
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L41
.L64:
	movq	16(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L36:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L42
.L65:
	movl	(%r8,%rcx,4), %eax
.L33:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rbx
	cmpl	%ebx, %eax
	jg	.L43
	movq	152(%rsp), %r11
.L66:
	movl	(%r8,%r13,4), %eax
.L30:
	addq	$1, %r11
	cmpl	%r11d, %eax
	jg	.L44
.L67:
	movq	104(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L27:
	addq	$1, 32(%rsp)
	movq	32(%rsp), %rsi
	cmpl	%esi, %eax
	jg	.L45
.L68:
	movq	96(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L24:
	addq	$1, 40(%rsp)
	movq	40(%rsp), %rcx
	cmpl	%ecx, %eax
	jg	.L46
.L69:
	movq	88(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L21:
	addq	$1, 48(%rsp)
	movq	48(%rsp), %rsi
	cmpl	%esi, %eax
	jg	.L47
.L70:
	movq	80(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L18:
	addq	$1, 56(%rsp)
	movq	56(%rsp), %rcx
	cmpl	%ecx, %eax
	jg	.L48
.L71:
	movq	72(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L15:
	addq	$1, 64(%rsp)
	movq	64(%rsp), %rdx
	cmpl	%edx, %eax
	jg	.L49
.L50:
	xorl	%eax, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L61:
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	.p2align 4,,10
	.p2align 3
.L34:
	movl	160(%rsp), %eax
	movl	%eax, (%r15,%rsi,4)
	movq	144(%rsp), %rax
	movl	%r11d, (%r15,%rax,4)
.L31:
	movl	200(%rsp), %eax
	movl	%eax, (%r15,%r10,4)
	movl	124(%rsp), %eax
	movl	%eax, (%r15,%rdx,4)
.L28:
	movq	104(%rsp), %rax
	movl	196(%rsp), %ecx
	movl	192(%rsp), %esi
	movl	%ecx, (%r15,%rax,4)
	movq	288(%rsp), %rax
	movl	%esi, (%r15,%rax,4)
.L25:
	movq	96(%rsp), %rax
	movl	188(%rsp), %ecx
	movl	184(%rsp), %edx
	movl	%ecx, (%r15,%rax,4)
	movq	280(%rsp), %rax
	movl	%edx, (%r15,%rax,4)
.L22:
	movq	88(%rsp), %rax
	movl	180(%rsp), %esi
	movl	176(%rsp), %ebx
	movl	%esi, (%r15,%rax,4)
	movq	272(%rsp), %rax
	movl	%ebx, (%r15,%rax,4)
.L19:
	movq	80(%rsp), %rax
	movl	172(%rsp), %ecx
	movl	164(%rsp), %edx
	movl	%ecx, (%r15,%rax,4)
	movq	264(%rsp), %rax
	movl	%edx, (%r15,%rax,4)
.L16:
	movq	72(%rsp), %rax
	movl	168(%rsp), %esi
	movl	252(%rsp), %edi
	movl	%esi, (%r15,%rax,4)
	movq	256(%rsp), %rax
	movl	%edi, (%r15,%rax,4)
	movl	$1, %eax
.L12:
	addq	$344, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L62:
	.cfi_restore_state
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	movq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L37:
	movq	16(%rsp), %rax
	movl	120(%rsp), %ebx
	movl	%ebx, (%r15,%rax,4)
	movl	204(%rsp), %eax
	movl	%eax, (%r15,%rcx,4)
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L40:
	movq	112(%rsp), %rax
	movl	%r11d, %edi
	movq	%rdx, %r12
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	movq	296(%rsp), %rcx
	movl	%edi, (%r15,%rax,4)
	movl	248(%rsp), %eax
	movl	%eax, (%r15,%r12,4)
	jmp	.L37
.L60:
	movq	%r10, %rdx
	movq	%r13, %r10
	jmp	.L31
	.cfi_endproc
.LFE37:
	.size	bpm, .-bpm
	.p2align 4
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$6416, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leal	(%rdi,%rsi), %r14d
	movl	$-1, %esi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%r14d, %rax
	movl	%edi, %r13d
	leaq	match(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	0(,%rax,4), %rdx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rax, 8(%rsp)
	call	__memset_chk@PLT
	testl	%r13d, %r13d
	jle	.L79
	movslq	%r13d, %rax
	movq	$0, (%rsp)
	leaq	hi(%rip), %rbp
	leaq	to(%rip), %rbx
	movq	%rax, 16(%rsp)
	leaq	seen(%rip), %r15
	movl	$0, 28(%rsp)
	.p2align 4,,10
	.p2align 3
.L78:
	movl	(%rsp), %eax
	movq	8(%rsp), %rdx
	movl	$1604, %ecx
	xorl	%esi, %esi
	movq	%r15, %rdi
	movl	%eax, 24(%rsp)
	call	__memset_chk@PLT
	movl	0(%rbp), %eax
	testl	%eax, %eax
	jle	.L74
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L77:
	movslq	(%rbx,%r12,4), %r14
	cmpb	$0, (%r15,%r14)
	movq	%r14, %r13
	jne	.L75
	leaq	match(%rip), %rax
	movb	$1, (%r15,%r14)
	movl	(%rax,%r14,4), %edi
	testl	%edi, %edi
	js	.L76
	call	bpm
	testl	%eax, %eax
	jne	.L76
	movl	0(%rbp), %eax
.L75:
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L77
.L74:
	addq	$1, (%rsp)
	addq	$4, %rbp
	movq	(%rsp), %rax
	addq	$6416, %rbx
	cmpq	16(%rsp), %rax
	jne	.L78
.L72:
	movl	28(%rsp), %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L76:
	.cfi_restore_state
	movq	(%rsp), %rdx
	movl	24(%rsp), %esi
	leaq	match(%rip), %rax
	addl	$1, 28(%rsp)
	movl	%r13d, (%rax,%rdx,4)
	movl	%esi, (%rax,%r14,4)
	jmp	.L74
.L79:
	movl	$0, 28(%rsp)
	jmp	.L72
	.cfi_endproc
.LFE36:
	.size	bipartiteMatching, .-bipartiteMatching
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	call	in
	movl	%eax, %r14d
	xorl	%eax, %eax
	call	in
	movl	%eax, %ebp
	xorl	%eax, %eax
	call	in
	movl	$0, vs(%rip)
	movl	$0, us(%rip)
	testl	%r14d, %r14d
	jle	.L107
	leal	(%rbp,%rbp), %ebx
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	movl	%r14d, %r15d
	movl	$0, 24(%rsp)
	movl	%ebx, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L101:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L125
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rax), %eax
.L86:
	xorl	%r14d, %r14d
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L87:
	leaq	1(%rcx), %r8
	movq	%r8, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L89
.L88:
	movq	%r8, %rcx
.L90:
	leal	(%r14,%r14,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r14d
	cmpq	%rsi, %rcx
	jb	.L87
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r8
	movq	16(%rdi), %rsi
	cmpl	$47, %eax
	jg	.L88
	.p2align 4,,10
	.p2align 3
.L89:
	cmpq	%r8, %rsi
	jbe	.L126
	leaq	1(%r8), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%r8), %eax
.L92:
	xorl	%ebx, %ebx
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L93:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L95
.L94:
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
.L96:
	leal	(%rbx,%rbx,4), %r8d
	andl	$15, %eax
	leal	(%rax,%r8,2), %ebx
	cmpq	%rsi, %rcx
	jb	.L93
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L95
	movq	stdin(%rip), %rdi
	jmp	.L94
	.p2align 4,,10
	.p2align 3
.L95:
	movl	%r14d, %ecx
	movd	%r14d, %xmm0
	movd	%ebx, %xmm1
	subl	%ebx, %ecx
	punpckldq	%xmm1, %xmm0
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %ebp
	jge	.L97
	cmpl	%eax, %r13d
	jg	.L98
	cmpl	%eax, 12(%rsp)
	jge	.L97
.L98:
	cmpl	%r14d, %ebx
	jg	.L100
	movslq	us(%rip), %rcx
	leaq	u(%rip), %rdx
	movq	%rcx, %rax
	movl	%r14d, (%rdx,%rcx,8)
	addl	$1, %eax
	movl	%ebx, 4(%rdx,%rcx,8)
	movl	%eax, us(%rip)
.L99:
	addl	$1, %r12d
	cmpl	%r12d, %r15d
	jne	.L101
	movl	us(%rip), %eax
	movl	vs(%rip), %edx
	movl	12(%rsp), %ebx
	movl	%edx, 28(%rsp)
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L84
	testl	%edx, %edx
	jle	.L84
	movslq	%eax, %rdi
	xorl	%r14d, %r14d
	leal	(%rdx,%rax), %r11d
	movq	%rdi, 16(%rsp)
	leaq	hi(%rip), %rsi
	leaq	4+u(%rip), %r8
	leaq	to(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L103:
	movslq	%r14d, %r10
	leaq	u(%rip), %rax
	movl	(%r8,%r14,8), %edi
	movl	12(%rsp), %ecx
	imulq	$1604, %r10, %r10
	movl	(%rax,%r14,8), %r9d
	leaq	4+v(%rip), %rdx
	.p2align 4,,10
	.p2align 3
.L106:
	movl	-4(%rdx), %eax
	movl	(%rdx), %r15d
	addl	%r9d, %eax
	addl	%edi, %r15d
	subl	%r15d, %eax
	movl	%eax, %r15d
	negl	%r15d
	cmovns	%r15d, %eax
	cmpl	%eax, %ebp
	jge	.L104
	cmpl	%eax, %r13d
	jg	.L105
	cmpl	%eax, %ebx
	jl	.L105
.L104:
	movslq	(%rsi), %rax
	leal	1(%rax), %r15d
	addq	%r10, %rax
	movl	%r15d, (%rsi)
	movl	%ecx, (%r12,%rax,4)
.L105:
	addl	$1, %ecx
	addq	$8, %rdx
	cmpl	%r11d, %ecx
	jne	.L106
	addq	$1, %r14
	addq	$4, %rsi
	cmpq	%r14, 16(%rsp)
	jne	.L103
.L84:
	movl	28(%rsp), %esi
	movl	12(%rsp), %edi
	call	bipartiteMatching
	movl	24(%rsp), %edx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L97:
	.cfi_restore_state
	addl	$1, 24(%rsp)
	jmp	.L99
	.p2align 4,,10
	.p2align 3
.L100:
	movslq	vs(%rip), %rax
	leaq	v(%rip), %rbx
	leal	1(%rax), %edx
	movl	%edx, vs(%rip)
	movq	%xmm0, (%rbx,%rax,8)
	jmp	.L99
	.p2align 4,,10
	.p2align 3
.L126:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L125:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L86
.L107:
	movl	$0, 28(%rsp)
	movl	$0, 24(%rsp)
	movl	$0, 12(%rsp)
	jmp	.L84
	.cfi_endproc
.LFE38:
	.size	main, .-main
	.globl	vs
	.bss
	.align 4
	.type	vs, @object
	.size	vs, 4
vs:
	.zero	4
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 6416
v:
	.zero	6416
	.globl	us
	.align 4
	.type	us, @object
	.size	us, 4
us:
	.zero	4
	.globl	u
	.align 32
	.type	u, @object
	.size	u, 6416
u:
	.zero	6416
	.globl	match
	.align 32
	.type	match, @object
	.size	match, 6416
match:
	.zero	6416
	.globl	seen
	.align 32
	.type	seen, @object
	.size	seen, 1604
seen:
	.zero	1604
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 10291264
to:
	.zero	10291264
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 6416
hi:
	.zero	6416
	.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	in
	.type	in, @function
in:
.LFB35:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	in, .-in
	.p2align 4
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	hi(%rip), %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$344, %rsp
	.cfi_def_cfa_offset 400
	movl	%eax, 252(%rsp)
	movq	%rax, 72(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L50
	imulq	$6416, 72(%rsp), %rdx
	leaq	to(%rip), %r14
	movq	$0, 64(%rsp)
	leaq	seen(%rip), %r9
	leaq	match(%rip), %r15
	addq	%r14, %rdx
	movq	%rdx, 240(%rsp)
.L49:
	movq	240(%rsp), %rdi
	movq	64(%rsp), %rcx
	movslq	(%rdi,%rcx,4), %rsi
	cmpb	$0, (%r9,%rsi)
	movl	%esi, 168(%rsp)
	movq	%rsi, 256(%rsp)
	jne	.L15
	movslq	(%r15,%rsi,4), %rax
	movb	$1, (%r9,%rsi)
	movl	%eax, 164(%rsp)
	testl	%eax, %eax
	js	.L16
	movq	%rax, 80(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L71
	imulq	$6416, 80(%rsp), %rdx
	movq	$0, 56(%rsp)
	leaq	(%r14,%rdx), %rsi
	movq	%rsi, 232(%rsp)
.L48:
	movq	232(%rsp), %rdi
	movq	56(%rsp), %rbx
	movslq	(%rdi,%rbx,4), %rcx
	cmpb	$0, (%r9,%rcx)
	movl	%ecx, 172(%rsp)
	movq	%rcx, 264(%rsp)
	jne	.L18
	movslq	(%r15,%rcx,4), %rax
	movb	$1, (%r9,%rcx)
	movl	%eax, 176(%rsp)
	testl	%eax, %eax
	js	.L19
	movq	%rax, 88(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L70
	imulq	$6416, 88(%rsp), %rdx
	movq	$0, 48(%rsp)
	addq	%r14, %rdx
	movq	%rdx, 224(%rsp)
.L47:
	movq	224(%rsp), %rsi
	movq	48(%rsp), %rdi
	movslq	(%rsi,%rdi,4), %rbx
	cmpb	$0, (%r9,%rbx)
	movl	%ebx, 180(%rsp)
	movq	%rbx, 272(%rsp)
	jne	.L21
	movslq	(%r15,%rbx,4), %rax
	movb	$1, (%r9,%rbx)
	movl	%eax, 184(%rsp)
	testl	%eax, %eax
	js	.L22
	movq	%rax, 96(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L69
	imulq	$6416, 96(%rsp), %rdx
	movq	$0, 40(%rsp)
	leaq	(%r14,%rdx), %rcx
	movq	%rcx, 216(%rsp)
.L46:
	movq	216(%rsp), %rdx
	movq	40(%rsp), %rsi
	movslq	(%rdx,%rsi,4), %rdx
	cmpb	$0, (%r9,%rdx)
	movl	%edx, 188(%rsp)
	movq	%rdx, 280(%rsp)
	jne	.L24
	movslq	(%r15,%rdx,4), %rax
	movb	$1, (%r9,%rdx)
	movl	%eax, 192(%rsp)
	testl	%eax, %eax
	js	.L25
	movq	%rax, 104(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L68
	imulq	$6416, 104(%rsp), %rdx
	movq	$0, 32(%rsp)
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 208(%rsp)
.L45:
	movq	208(%rsp), %rcx
	movq	32(%rsp), %rdx
	movslq	(%rcx,%rdx,4), %rdi
	cmpb	$0, (%r9,%rdi)
	movl	%edi, 196(%rsp)
	movq	%rdi, 288(%rsp)
	jne	.L27
	movl	(%r15,%rdi,4), %eax
	movb	$1, (%r9,%rdi)
	movl	%eax, 124(%rsp)
	testl	%eax, %eax
	js	.L28
	movslq	%eax, %r11
	movl	(%r8,%r11,4), %eax
	testl	%eax, %eax
	jle	.L67
	imulq	$6416, %r11, %rdx
	xorl	%r13d, %r13d
	movq	%r11, %rcx
	movq	%r13, %r11
	movq	%rcx, %r13
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 128(%rsp)
	.p2align 4,,10
	.p2align 3
.L44:
	movq	128(%rsp), %rsi
	movslq	(%rsi,%r11,4), %r10
	cmpb	$0, (%r9,%r10)
	movl	%r10d, 200(%rsp)
	jne	.L30
	movl	(%r15,%r10,4), %esi
	movb	$1, (%r9,%r10)
	testl	%esi, %esi
	js	.L60
	movslq	%esi, %rcx
	movl	(%r8,%rcx,4), %eax
	testl	%eax, %eax
	jle	.L66
	imulq	$6416, %rcx, %rdx
	movq	%r11, 152(%rsp)
	movq	$0, 8(%rsp)
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 136(%rsp)
	.p2align 4,,10
	.p2align 3
.L43:
	movq	136(%rsp), %rdi
	movq	8(%rsp), %rbx
	movslq	(%rdi,%rbx,4), %rdi
	cmpb	$0, (%r9,%rdi)
	movl	%edi, 160(%rsp)
	movq	%rdi, 144(%rsp)
	jne	.L33
	movslq	(%r15,%rdi,4), %rax
	movb	$1, (%r9,%rdi)
	movl	%eax, 204(%rsp)
	testl	%eax, %eax
	js	.L61
	movq	%rax, 16(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L65
	imulq	$6416, 16(%rsp), %rdx
	xorl	%ebx, %ebx
	addq	%r14, %rdx
	movq	%rdx, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L42:
	movq	24(%rsp), %rdx
	movslq	(%rdx,%rbx,4), %rbp
	cmpb	$0, (%r9,%rbp)
	movl	%ebp, 120(%rsp)
	jne	.L36
	movslq	(%r15,%rbp,4), %rax
	movb	$1, (%r9,%rbp)
	movl	%eax, 248(%rsp)
	testl	%eax, %eax
	js	.L62
	movq	%rax, 112(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L64
	imulq	$6416, 112(%rsp), %r11
	movq	%rbp, 296(%rsp)
	xorl	%r12d, %r12d
	addq	%r14, %r11
	movq	%r11, %rbp
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	0(%rbp,%r12,4), %rdx
	cmpb	$0, (%r9,%rdx)
	movq	%rdx, %r11
	jne	.L39
	movl	(%r15,%rdx,4), %edi
	movb	$1, (%r9,%rdx)
	testl	%edi, %edi
	js	.L40
	movq	%rdx, 328(%rsp)
	movl	%edx, 324(%rsp)
	movq	%rcx, 312(%rsp)
	movq	%r10, 304(%rsp)
	movl	%esi, 320(%rsp)
	call	bpm
	movl	320(%rsp), %esi
	movq	304(%rsp), %r10
	testl	%eax, %eax
	movq	312(%rsp), %rcx
	movl	324(%rsp), %r11d
	movq	328(%rsp), %rdx
	jne	.L40
	movq	112(%rsp), %rax
	leaq	hi(%rip), %r8
	leaq	seen(%rip), %r9
	movl	(%r8,%rax,4), %eax
	.p2align 4,,10
	.p2align 3
.L39:
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L41
.L64:
	movq	16(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L36:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L42
.L65:
	movl	(%r8,%rcx,4), %eax
.L33:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rbx
	cmpl	%ebx, %eax
	jg	.L43
	movq	152(%rsp), %r11
.L66:
	movl	(%r8,%r13,4), %eax
.L30:
	addq	$1, %r11
	cmpl	%r11d, %eax
	jg	.L44
.L67:
	movq	104(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L27:
	addq	$1, 32(%rsp)
	movq	32(%rsp), %rsi
	cmpl	%esi, %eax
	jg	.L45
.L68:
	movq	96(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L24:
	addq	$1, 40(%rsp)
	movq	40(%rsp), %rcx
	cmpl	%ecx, %eax
	jg	.L46
.L69:
	movq	88(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L21:
	addq	$1, 48(%rsp)
	movq	48(%rsp), %rsi
	cmpl	%esi, %eax
	jg	.L47
.L70:
	movq	80(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L18:
	addq	$1, 56(%rsp)
	movq	56(%rsp), %rcx
	cmpl	%ecx, %eax
	jg	.L48
.L71:
	movq	72(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L15:
	addq	$1, 64(%rsp)
	movq	64(%rsp), %rdx
	cmpl	%edx, %eax
	jg	.L49
.L50:
	xorl	%eax, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L61:
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	.p2align 4,,10
	.p2align 3
.L34:
	movl	160(%rsp), %eax
	movl	%eax, (%r15,%rsi,4)
	movq	144(%rsp), %rax
	movl	%r11d, (%r15,%rax,4)
.L31:
	movl	200(%rsp), %eax
	movl	%eax, (%r15,%r10,4)
	movl	124(%rsp), %eax
	movl	%eax, (%r15,%rdx,4)
.L28:
	movq	104(%rsp), %rax
	movl	196(%rsp), %ecx
	movl	192(%rsp), %esi
	movl	%ecx, (%r15,%rax,4)
	movq	288(%rsp), %rax
	movl	%esi, (%r15,%rax,4)
.L25:
	movq	96(%rsp), %rax
	movl	188(%rsp), %ecx
	movl	184(%rsp), %edx
	movl	%ecx, (%r15,%rax,4)
	movq	280(%rsp), %rax
	movl	%edx, (%r15,%rax,4)
.L22:
	movq	88(%rsp), %rax
	movl	180(%rsp), %esi
	movl	176(%rsp), %ebx
	movl	%esi, (%r15,%rax,4)
	movq	272(%rsp), %rax
	movl	%ebx, (%r15,%rax,4)
.L19:
	movq	80(%rsp), %rax
	movl	172(%rsp), %ecx
	movl	164(%rsp), %edx
	movl	%ecx, (%r15,%rax,4)
	movq	264(%rsp), %rax
	movl	%edx, (%r15,%rax,4)
.L16:
	movq	72(%rsp), %rax
	movl	168(%rsp), %esi
	movl	252(%rsp), %edi
	movl	%esi, (%r15,%rax,4)
	movq	256(%rsp), %rax
	movl	%edi, (%r15,%rax,4)
	movl	$1, %eax
.L12:
	addq	$344, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L62:
	.cfi_restore_state
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	movq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L37:
	movq	16(%rsp), %rax
	movl	120(%rsp), %ebx
	movl	%ebx, (%r15,%rax,4)
	movl	204(%rsp), %eax
	movl	%eax, (%r15,%rcx,4)
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L40:
	movq	112(%rsp), %rax
	movl	%r11d, %edi
	movq	%rdx, %r12
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	movq	296(%rsp), %rcx
	movl	%edi, (%r15,%rax,4)
	movl	248(%rsp), %eax
	movl	%eax, (%r15,%r12,4)
	jmp	.L37
.L60:
	movq	%r10, %rdx
	movq	%r13, %r10
	jmp	.L31
	.cfi_endproc
.LFE37:
	.size	bpm, .-bpm
	.p2align 4
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$6416, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leal	(%rdi,%rsi), %r14d
	movl	$-1, %esi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%r14d, %rax
	movl	%edi, %r13d
	leaq	match(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	0(,%rax,4), %rdx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rax, 8(%rsp)
	call	__memset_chk@PLT
	testl	%r13d, %r13d
	jle	.L79
	movslq	%r13d, %rax
	movq	$0, (%rsp)
	leaq	hi(%rip), %rbp
	leaq	to(%rip), %rbx
	movq	%rax, 16(%rsp)
	leaq	seen(%rip), %r15
	movl	$0, 28(%rsp)
	.p2align 4,,10
	.p2align 3
.L78:
	movl	(%rsp), %eax
	movq	8(%rsp), %rdx
	movl	$1604, %ecx
	xorl	%esi, %esi
	movq	%r15, %rdi
	movl	%eax, 24(%rsp)
	call	__memset_chk@PLT
	movl	0(%rbp), %eax
	testl	%eax, %eax
	jle	.L74
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L77:
	movslq	(%rbx,%r12,4), %r14
	cmpb	$0, (%r15,%r14)
	movq	%r14, %r13
	jne	.L75
	leaq	match(%rip), %rax
	movb	$1, (%r15,%r14)
	movl	(%rax,%r14,4), %edi
	testl	%edi, %edi
	js	.L76
	call	bpm
	testl	%eax, %eax
	jne	.L76
	movl	0(%rbp), %eax
.L75:
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L77
.L74:
	addq	$1, (%rsp)
	addq	$4, %rbp
	movq	(%rsp), %rax
	addq	$6416, %rbx
	cmpq	16(%rsp), %rax
	jne	.L78
.L72:
	movl	28(%rsp), %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L76:
	.cfi_restore_state
	movq	(%rsp), %rdx
	movl	24(%rsp), %esi
	leaq	match(%rip), %rax
	addl	$1, 28(%rsp)
	movl	%r13d, (%rax,%rdx,4)
	movl	%esi, (%rax,%r14,4)
	jmp	.L74
.L79:
	movl	$0, 28(%rsp)
	jmp	.L72
	.cfi_endproc
.LFE36:
	.size	bipartiteMatching, .-bipartiteMatching
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	call	in
	movl	%eax, %r14d
	xorl	%eax, %eax
	call	in
	movl	%eax, %ebp
	xorl	%eax, %eax
	call	in
	movl	$0, vs(%rip)
	movl	$0, us(%rip)
	testl	%r14d, %r14d
	jle	.L107
	leal	(%rbp,%rbp), %ebx
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	movl	%r14d, %r15d
	movl	$0, 24(%rsp)
	movl	%ebx, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L101:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L125
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rax), %eax
.L86:
	xorl	%r14d, %r14d
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L87:
	leaq	1(%rcx), %r8
	movq	%r8, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L89
.L88:
	movq	%r8, %rcx
.L90:
	leal	(%r14,%r14,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r14d
	cmpq	%rsi, %rcx
	jb	.L87
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r8
	movq	16(%rdi), %rsi
	cmpl	$47, %eax
	jg	.L88
	.p2align 4,,10
	.p2align 3
.L89:
	cmpq	%r8, %rsi
	jbe	.L126
	leaq	1(%r8), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%r8), %eax
.L92:
	xorl	%ebx, %ebx
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L93:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L95
.L94:
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
.L96:
	leal	(%rbx,%rbx,4), %r8d
	andl	$15, %eax
	leal	(%rax,%r8,2), %ebx
	cmpq	%rsi, %rcx
	jb	.L93
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L95
	movq	stdin(%rip), %rdi
	jmp	.L94
	.p2align 4,,10
	.p2align 3
.L95:
	movl	%r14d, %ecx
	movd	%r14d, %xmm0
	movd	%ebx, %xmm1
	subl	%ebx, %ecx
	punpckldq	%xmm1, %xmm0
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	cmpl	%eax, %ebp
	jge	.L97
	cmpl	%eax, %r13d
	jg	.L98
	cmpl	%eax, 12(%rsp)
	jge	.L97
.L98:
	cmpl	%r14d, %ebx
	jg	.L100
	movslq	us(%rip), %rcx
	leaq	u(%rip), %rdx
	movq	%rcx, %rax
	movl	%r14d, (%rdx,%rcx,8)
	addl	$1, %eax
	movl	%ebx, 4(%rdx,%rcx,8)
	movl	%eax, us(%rip)
.L99:
	addl	$1, %r12d
	cmpl	%r12d, %r15d
	jne	.L101
	movl	us(%rip), %eax
	movl	vs(%rip), %edx
	movl	12(%rsp), %ebx
	movl	%edx, 28(%rsp)
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L84
	testl	%edx, %edx
	jle	.L84
	movslq	%eax, %rdi
	xorl	%r14d, %r14d
	leal	(%rdx,%rax), %r11d
	movq	%rdi, 16(%rsp)
	leaq	hi(%rip), %rsi
	leaq	4+u(%rip), %r8
	leaq	to(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L103:
	movslq	%r14d, %r10
	leaq	u(%rip), %rax
	movl	(%r8,%r14,8), %edi
	movl	12(%rsp), %ecx
	imulq	$1604, %r10, %r10
	movl	(%rax,%r14,8), %r9d
	leaq	4+v(%rip), %rdx
	.p2align 4,,10
	.p2align 3
.L106:
	movl	-4(%rdx), %eax
	movl	(%rdx), %r15d
	addl	%r9d, %eax
	addl	%edi, %r15d
	subl	%r15d, %eax
	movl	%eax, %r15d
	negl	%r15d
	cmovns	%r15d, %eax
	cmpl	%eax, %ebp
	jge	.L104
	cmpl	%eax, %r13d
	jg	.L105
	cmpl	%eax, %ebx
	jl	.L105
.L104:
	movslq	(%rsi), %rax
	leal	1(%rax), %r15d
	addq	%r10, %rax
	movl	%r15d, (%rsi)
	movl	%ecx, (%r12,%rax,4)
.L105:
	addl	$1, %ecx
	addq	$8, %rdx
	cmpl	%r11d, %ecx
	jne	.L106
	addq	$1, %r14
	addq	$4, %rsi
	cmpq	%r14, 16(%rsp)
	jne	.L103
.L84:
	movl	28(%rsp), %esi
	movl	12(%rsp), %edi
	call	bipartiteMatching
	movl	24(%rsp), %edx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L97:
	.cfi_restore_state
	addl	$1, 24(%rsp)
	jmp	.L99
	.p2align 4,,10
	.p2align 3
.L100:
	movslq	vs(%rip), %rax
	leaq	v(%rip), %rbx
	leal	1(%rax), %edx
	movl	%edx, vs(%rip)
	movq	%xmm0, (%rbx,%rax,8)
	jmp	.L99
	.p2align 4,,10
	.p2align 3
.L126:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L125:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L86
.L107:
	movl	$0, 28(%rsp)
	movl	$0, 24(%rsp)
	movl	$0, 12(%rsp)
	jmp	.L84
	.cfi_endproc
.LFE38:
	.size	main, .-main
	.globl	vs
	.bss
	.align 4
	.type	vs, @object
	.size	vs, 4
vs:
	.zero	4
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 6416
v:
	.zero	6416
	.globl	us
	.align 4
	.type	us, @object
	.size	us, 4
us:
	.zero	4
	.globl	u
	.align 32
	.type	u, @object
	.size	u, 6416
u:
	.zero	6416
	.globl	match
	.align 32
	.type	match, @object
	.size	match, 6416
match:
	.zero	6416
	.globl	seen
	.align 32
	.type	seen, @object
	.size	seen, 1604
seen:
	.zero	1604
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 10291264
to:
	.zero	10291264
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 6416
hi:
	.zero	6416
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

// AOJ 3032 Combine Two Elements
// 2018.3.29 bal4u

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

//#define getchar_unlocked()  getchar()
int in()	/* 整数値の入力 */
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

#define MAX 1604
int  hi[MAX], to[MAX][MAX];
char seen[MAX];
int  match[MAX];

int bpm(int u);
int bipartiteMatching(int m, int n)
{
	int u, max;

	memset(match, -1, (m+n)*sizeof(int));
	max = 0;
	for (u = 0; u < m; u++) {
		memset(seen, 0, m+n);
		if (bpm(u)) max++;
	}
	return max;
}

int bpm(int u)
{
	int i, v;

	for (i = 0; i < hi[u]; i++) {
		v = to[u][i];
		if (seen[v]) continue;
		seen[v] = 1;
		if (match[v] < 0 || bpm(match[v])) {
			match[u] = v, match[v] = u;
			return 1;
		}
	}
	return 0;
}

#define ABS(a)  ((a)>=0?(a):-(a))

typedef struct { int a, b; } T;
T u[802]; int us;
T v[802]; int vs;

int main()
{
	int N, A, B, A2, i, j, a, b, d, ans;

	N = in(), A = in(), B = in(), A2 = A<<1;
	ans = 0, us = vs = 0;
	for (i = 0; i < N; i++) {
		a = in(), b = in();
		d = ABS(a-b);
		if (d <= A || (B <= d && d <= A2)) { ans++; continue; }
		if (a >= b) u[us].a = a, u[us++].b = b;
		else        v[vs].a = a, v[vs++].b = b;
	}

	for (i = 0; i < us; i++) for (j = 0; j < vs; j++) {
		a = u[i].a + v[j].a;
		b = u[i].b + v[j].b;
		d = ABS(a-b);
		if (d <= A || (B <= d && d <= A2)) to[i][hi[i]++] = us+j;
	}

	ans += bipartiteMatching(us, vs);
	printf("%d\n", ans);
	return 0;
}


10 7 12
34 70
36 0
12 50
76 46
33 45
61 21
0 0
24 3
98 41
23 84
 5 3 4
7 2
13 1
1 1
2 9
2 4
 10 7 12
34 70
36 0
12 50
19 46
33 45
61 21
0 0
24 3
98 41
23 84
 2 3 4
7 3
13 1
1 1
2 9
2 4
 2 3 5
7 3
13 1
1 1
2 9
2 4
 10 1 12
34 70
36 0
12 50
19 46
33 45
61 21
0 0
24 3
98 73
23 84
 6 1 0
18 9
90 -3
2 11
1 0
2 1
23 31
-14 1
1 12
36 24
4 11
 5 3 4
7 3
13 1
1 1
2 9
2 4
 10 7 12
34 70
36 0
12 50
19 46
33 45
61 21
0 0
24 3
98 73
23 84
 10 5 12
34 70
36 0
12 50
19 46
33 45
61 21
0 0
24 3
98 73
23 84

5
 4
 6
 1
 0
 2
 3
 4
 5
 4

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

```c
// AOJ 3032 Combine Two Elements
// 2018.3.29 bal4u

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

//#define getchar_unlocked()  getchar()
int in()	/* 整数値の入力 */
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

#define MAX 1604
int  hi[MAX], to[MAX][MAX];
char seen[MAX];
int  match[MAX];

int bpm(int u);
int bipartiteMatching(int m, int n)
{
	int u, max;

	memset(match, -1, (m+n)*sizeof(int));
	max = 0;
	for (u = 0; u < m; u++) {
		memset(seen, 0, m+n);
		if (bpm(u)) max++;
	}
	return max;
}

int bpm(int u)
{
	int i, v;

	for (i = 0; i < hi[u]; i++) {
		v = to[u][i];
		if (seen[v]) continue;
		seen[v] = 1;
		if (match[v] < 0 || bpm(match[v])) {
			match[u] = v, match[v] = u;
			return 1;
		}
	}
	return 0;
}

#define ABS(a)  ((a)>=0?(a):-(a))

typedef struct { int a, b; } T;
T u[802]; int us;
T v[802]; int vs;

int main()
{
	int N, A, B, A2, i, j, a, b, d, ans;

	N = in(), A = in(), B = in(), A2 = A<<1;
	ans = 0, us = vs = 0;
	for (i = 0; i < N; i++) {
		a = in(), b = in();
		d = ABS(a-b);
		if (d <= A || (B <= d && d <= A2)) { ans++; continue; }
		if (a >= b) u[us].a = a, u[us++].b = b;
		else        v[vs].a = a, v[vs++].b = b;
	}

	for (i = 0; i < us; i++) for (j = 0; j < vs; j++) {
		a = u[i].a + v[j].a;
		b = u[i].b + v[j].b;
		d = ABS(a-b);
		if (d <= A || (B <= d && d <= A2)) to[i][hi[i]++] = us+j;
	}

	ans += bipartiteMatching(us, vs);
	printf("%d\n", ans);
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.globl	hi
	.bss
	.align 32
	.type	hi, @object
	.size	hi, 6416
hi:
	.zero	6416
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 10291264
to:
	.zero	10291264
	.globl	seen
	.align 32
	.type	seen, @object
	.size	seen, 1604
seen:
	.zero	1604
	.globl	match
	.align 32
	.type	match, @object
	.size	match, 6416
match:
	.zero	6416
	.text
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	match(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L5
.L7:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	seen(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-8(%rbp), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L6
	addl	$1, -4(%rbp)
.L6:
	addl	$1, -8(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L7
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	bipartiteMatching, .-bipartiteMatching
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L10
.L15:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1604, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L16
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	match(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L13
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	match(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L12
.L13:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	match(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	match(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, %eax
	jmp	.L14
.L16:
	nop
.L12:
	addl	$1, -8(%rbp)
.L10:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L15
	movl	$0, %eax
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	bpm, .-bpm
	.globl	u
	.bss
	.align 32
	.type	u, @object
	.size	u, 6416
u:
	.zero	6416
	.globl	us
	.align 4
	.type	us, @object
	.size	us, 4
us:
	.zero	4
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 6416
v:
	.zero	6416
	.globl	vs
	.align 4
	.type	vs, @object
	.size	vs, 4
vs:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -28(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -16(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, vs(%rip)
	movl	vs(%rip), %eax
	movl	%eax, us(%rip)
	movl	$0, -40(%rbp)
	jmp	.L18
.L23:
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L19
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L20
	movl	-4(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jg	.L20
.L19:
	addl	$1, -32(%rbp)
	jmp	.L21
.L20:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L22
	movl	us(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	u(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	us(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, us(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+u(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L21
.L22:
	movl	vs(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	v(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	vs(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, vs(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+v(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L21:
	addl	$1, -40(%rbp)
.L18:
	movl	-40(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L23
	movl	$0, -40(%rbp)
	jmp	.L24
.L29:
	movl	$0, -36(%rbp)
	jmp	.L25
.L28:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	u(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+u(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+v(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L26
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L27
	movl	-4(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jg	.L27
.L26:
	movl	us(%rip), %edi
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-40(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movl	-36(%rbp), %edx
	leal	(%rdi,%rdx), %ecx
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$1604, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L27:
	addl	$1, -36(%rbp)
.L25:
	movl	vs(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L28
	addl	$1, -40(%rbp)
.L24:
	movl	us(%rip), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L29
	movl	vs(%rip), %edx
	movl	us(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	bipartiteMatching
	addl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	in
	.type	in, @function
in:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.globl	hi
	.bss
	.align 32
	.type	hi, @object
	.size	hi, 6416
hi:
	.zero	6416
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 10291264
to:
	.zero	10291264
	.globl	seen
	.align 32
	.type	seen, @object
	.size	seen, 1604
seen:
	.zero	1604
	.globl	match
	.align 32
	.type	match, @object
	.size	match, 6416
match:
	.zero	6416
	.text
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	match(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L5
.L7:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	seen(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-8(%rbp), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L6
	addl	$1, -4(%rbp)
.L6:
	addl	$1, -8(%rbp)
.L5:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L7
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	bipartiteMatching, .-bipartiteMatching
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L10
.L15:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$1604, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L16
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	match(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L13
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	match(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L12
.L13:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	match(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	match(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, %eax
	jmp	.L14
.L16:
	nop
.L12:
	addl	$1, -8(%rbp)
.L10:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L15
	movl	$0, %eax
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	bpm, .-bpm
	.globl	u
	.bss
	.align 32
	.type	u, @object
	.size	u, 6416
u:
	.zero	6416
	.globl	us
	.align 4
	.type	us, @object
	.size	us, 4
us:
	.zero	4
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 6416
v:
	.zero	6416
	.globl	vs
	.align 4
	.type	vs, @object
	.size	vs, 4
vs:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -28(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -16(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, vs(%rip)
	movl	vs(%rip), %eax
	movl	%eax, us(%rip)
	movl	$0, -40(%rbp)
	jmp	.L18
.L23:
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L19
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L20
	movl	-4(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jg	.L20
.L19:
	addl	$1, -32(%rbp)
	jmp	.L21
.L20:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L22
	movl	us(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	u(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	us(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, us(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+u(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L21
.L22:
	movl	vs(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	v(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	vs(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, vs(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+v(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L21:
	addl	$1, -40(%rbp)
.L18:
	movl	-40(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L23
	movl	$0, -40(%rbp)
	jmp	.L24
.L29:
	movl	$0, -36(%rbp)
	jmp	.L25
.L28:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	u(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+u(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+v(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L26
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L27
	movl	-4(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jg	.L27
.L26:
	movl	us(%rip), %edi
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-40(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movl	-36(%rbp), %edx
	leal	(%rdi,%rdx), %ecx
	movslq	%eax, %rdx
	movl	-40(%rbp), %eax
	cltq
	imulq	$1604, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L27:
	addl	$1, -36(%rbp)
.L25:
	movl	vs(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L28
	addl	$1, -40(%rbp)
.L24:
	movl	us(%rip), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L29
	movl	vs(%rip), %edx
	movl	us(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	bipartiteMatching
	addl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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:
