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>
#define L 6
#define putlong_unlocked(X) \
    do{ \
        long n=X; \
        char c[L]; \
        long i=L-1; \
        do{ c[i]=n%10+'0'; n/=10; i--; }while(n>0); \
        for(i++;i<L;i++){ putchar_unlocked(c[i]); } \
    }while(0)
#define puts_unlocked(X) \
    do { \
        for(size_t i=0; X[i]!='\0'; i++){ \
            putchar_unlocked(X[i]); \
        } \
        putchar_unlocked('\n'); \
    }while(0)

static void solve(const long n, const long a, const long b, long mask, const long common){
    if(n==1){
        putlong_unlocked(common|a);
        putchar_unlocked(' ');
        putlong_unlocked(common|b);
        putchar_unlocked(' ');
    }else{
        const long t = a^b;
        const long d = t&(-t);
        mask ^= d;
        const long aa = a & mask;
        const long ab = aa ^ (mask&(-mask));
        solve(n-1, aa,     ab, mask, common|(a&d));
        solve(n-1, ab, b&mask, mask, common|(b&d));
    }
}

int main(void){
    long n, a, b;
    scanf("%ld %ld %ld", &n, &a, &b);
    if(__builtin_parity(a) == __builtin_parity(b)){
        puts_unlocked("NO");
    }else{
        puts_unlocked("YES");
        solve(n, a, b, 0xFFFFFFFFFFFFFFFF, 0);
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	solve, @function
solve:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movq	%rdi, -88(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%rdx, -104(%rbp)
	movq	%rcx, -112(%rbp)
	movq	%r8, -120(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpq	$1, -88(%rbp)
	jne	.L2
	movq	-120(%rbp), %rax
	orq	-96(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	$5, -72(%rbp)
.L3:
	movq	-80(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	leaq	-14(%rbp), %rcx
	movq	-72(%rbp), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	-80(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -80(%rbp)
	subq	$1, -72(%rbp)
	cmpq	$0, -80(%rbp)
	jg	.L3
	addq	$1, -72(%rbp)
	jmp	.L4
.L5:
	leaq	-14(%rbp), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -72(%rbp)
.L4:
	cmpq	$5, -72(%rbp)
	jle	.L5
	movl	$32, %edi
	call	putchar_unlocked@PLT
	movq	-120(%rbp), %rax
	orq	-104(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	$5, -56(%rbp)
.L6:
	movq	-64(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	leaq	-14(%rbp), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	-64(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -64(%rbp)
	subq	$1, -56(%rbp)
	cmpq	$0, -64(%rbp)
	jg	.L6
	addq	$1, -56(%rbp)
	jmp	.L7
.L8:
	leaq	-14(%rbp), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -56(%rbp)
.L7:
	cmpq	$5, -56(%rbp)
	jle	.L8
	movl	$32, %edi
	call	putchar_unlocked@PLT
	jmp	.L11
.L2:
	movq	-96(%rbp), %rax
	xorq	-104(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	-48(%rbp), %rax
	negq	%rax
	andq	-48(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	xorq	%rax, -112(%rbp)
	movq	-96(%rbp), %rax
	andq	-112(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-112(%rbp), %rax
	negq	%rax
	andq	-112(%rbp), %rax
	xorq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-96(%rbp), %rax
	andq	-40(%rbp), %rax
	orq	-120(%rbp), %rax
	movq	%rax, %rsi
	movq	-88(%rbp), %rax
	leaq	-1(%rax), %rdi
	movq	-112(%rbp), %rcx
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
	movq	-104(%rbp), %rax
	andq	-40(%rbp), %rax
	orq	-120(%rbp), %rax
	movq	%rax, %rsi
	movq	-104(%rbp), %rax
	andq	-112(%rbp), %rax
	movq	%rax, %rdx
	movq	-88(%rbp), %rax
	leaq	-1(%rax), %rdi
	movq	-112(%rbp), %rcx
	movq	-24(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
.L11:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %edx
	movq	-32(%rbp), %rax
	movl	%eax, %ecx
	shrl	$16, %ecx
	xorl	%ecx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %edx
	jne	.L13
	movq	$0, -24(%rbp)
	jmp	.L14
.L15:
	leaq	.LC1(%rip), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -24(%rbp)
.L14:
	leaq	.LC1(%rip), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L15
	movl	$10, %edi
	call	putchar_unlocked@PLT
	jmp	.L16
.L13:
	movq	$0, -16(%rbp)
	jmp	.L17
.L18:
	leaq	.LC2(%rip), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -16(%rbp)
.L17:
	leaq	.LC2(%rip), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L18
	movl	$10, %edi
	call	putchar_unlocked@PLT
	movq	-32(%rbp), %rdx
	movq	-40(%rbp), %rsi
	movq	-48(%rbp), %rax
	movl	$0, %r8d
	movq	$-1, %rcx
	movq	%rax, %rdi
	call	solve
.L16:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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
	.type	solve, @function
solve:
.LFB23:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rcx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r8, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	cmpq	$1, %rdi
	je	.L36
.L2:
	movq	%rbx, %rax
	movq	%rbx, %r8
	subq	$1, %r15
	xorq	%r12, %rax
	movq	%r15, %rdi
	movq	%rax, %rdx
	negq	%rdx
	andq	%rax, %rdx
	xorq	%rdx, %r14
	movq	%rdx, %rbp
	movq	%r14, %rsi
	movq	%r14, %rcx
	andq	%rbx, %rsi
	movq	%r14, %rbx
	negq	%rbx
	xorq	%r8, %rbx
	andq	%rdx, %r8
	andq	%r14, %rbx
	orq	%r13, %r8
	movq	%rbx, %rdx
	call	solve
	movq	%rbp, %rdx
	andq	%r12, %rdx
	andq	%r14, %r12
	orq	%rdx, %r13
	cmpq	$1, %r15
	jne	.L2
.L36:
	movabsq	$7378697629483820647, %rsi
	orq	%r13, %rbx
	movq	%rbx, %rax
	movq	%rbx, %rbp
	imulq	%rsi
	movq	%rbx, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	movq	%rcx, %rdi
	addq	%rax, %rax
	subq	%rax, %rbp
	addl	$48, %ebp
	movb	%bpl, 7(%rsp)
	cmpq	$9, %rbx
	jle	.L38
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rdi, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	movq	%rcx, %r8
	addq	%rax, %rax
	subq	%rax, %rdi
	movq	%rdi, %rcx
	addl	$48, %ecx
	movb	%cl, 6(%rsp)
	cmpq	$99, %rbx
	jle	.L39
	movq	%r8, %rax
	imulq	%rsi
	movq	%r8, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	movq	%rcx, %r9
	movq	%r8, %rcx
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 5(%rsp)
	cmpq	$999, %rbx
	jle	.L40
	movq	%r9, %rax
	imulq	%rsi
	movq	%r9, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	movq	%rcx, %rdi
	movq	%r9, %rcx
	subq	%rax, %rdi
	leaq	(%rdi,%rdi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 4(%rsp)
	cmpq	$9999, %rbx
	jle	.L41
	movq	%rdi, %rax
	imulq	%rsi
	movq	%rdx, %rax
	movq	%rdi, %rdx
	sarq	$2, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	subq	%rax, %rdi
	movq	%rdi, %rcx
	addl	$48, %ecx
	movb	%cl, 3(%rsp)
	cmpq	$99999, %rbx
	jle	.L42
	movq	%r8, %rax
	xorl	%ebx, %ebx
	imulq	%rsi
	movq	%r8, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	movq	%r8, %rax
	leaq	(%rdx,%rdx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rax
	addl	$48, %eax
	movb	%al, 2(%rsp)
.L3:
	movq	stdout(%rip), %rdi
	movzbl	2(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L4
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L5:
	cmpq	$5, %rbx
	je	.L6
	movq	stdout(%rip), %rdi
	movzbl	3(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L7
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L8:
	cmpq	$4, %rbx
	je	.L6
	movq	stdout(%rip), %rdi
	movzbl	4(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L9
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L10:
	cmpq	$3, %rbx
	je	.L6
	movq	stdout(%rip), %rdi
	movzbl	5(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L11
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L12:
	leaq	4(%rbx), %r14
	cmpq	$2, %rbx
	je	.L6
	movq	stdout(%rip), %rdi
	movzbl	2(%rsp,%r14), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L13
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L14:
	cmpq	$4, %r14
	jne	.L6
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L80
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%bpl, (%rax)
.L6:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L81
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$32, (%rax)
.L18:
	movabsq	$7378697629483820647, %rsi
	orq	%r13, %r12
	movq	%r12, %rax
	movq	%r12, %rbx
	imulq	%rsi
	movq	%r12, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rbx
	addl	$48, %ebx
	movb	%bl, 7(%rsp)
	cmpq	$9, %r12
	jle	.L43
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rdi
	subq	%rax, %rdi
	leaq	(%rdi,%rdi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 6(%rsp)
	cmpq	$99, %r12
	jle	.L44
	movq	%rdi, %rax
	imulq	%rsi
	movq	%rdi, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	movq	%rcx, %r8
	addq	%rax, %rax
	subq	%rax, %rdi
	movq	%rdi, %rcx
	addl	$48, %ecx
	movb	%cl, 5(%rsp)
	cmpq	$999, %r12
	jle	.L45
	movq	%r8, %rax
	movq	%r8, %rcx
	imulq	%rsi
	movq	%rdx, %rax
	movq	%r8, %rdx
	sarq	$2, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rdi
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 4(%rsp)
	cmpq	$9999, %r12
	jle	.L46
	movq	%rdi, %rax
	imulq	%rsi
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	%rdi, %rax
	leaq	(%rcx,%rcx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rax
	addl	$48, %eax
	movb	%al, 3(%rsp)
	cmpq	$99999, %r12
	jle	.L47
	movq	%rcx, %rax
	xorl	%ebp, %ebp
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 2(%rsp)
.L19:
	movq	stdout(%rip), %rdi
	movzbl	2(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L20
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L21:
	cmpq	$5, %rbp
	je	.L22
	movq	stdout(%rip), %rdi
	movzbl	3(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L23
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L24:
	cmpq	$4, %rbp
	je	.L22
	movq	stdout(%rip), %rdi
	movzbl	4(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L25
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L26:
	cmpq	$3, %rbp
	je	.L22
	movq	stdout(%rip), %rdi
	movzbl	5(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L27
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L28:
	leaq	4(%rbp), %r12
	cmpq	$2, %rbp
	je	.L22
	movq	stdout(%rip), %rdi
	movzbl	2(%rsp,%r12), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L29
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L30:
	cmpq	$4, %r12
	jne	.L22
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L82
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%bl, (%rax)
.L22:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L83
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$32, (%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$24, %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
.L41:
	.cfi_restore_state
	movl	$2, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L43:
	movl	$5, %ebp
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L38:
	movl	$5, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L44:
	movl	$4, %ebp
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L39:
	movl	$4, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L45:
	movl	$3, %ebp
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$3, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L81:
	movl	$32, %esi
	call	__overflow@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L4:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L83:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$32, %esi
	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
	jmp	__overflow@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L46:
	movl	$2, %ebp
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L23:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L7:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L42:
	movl	$1, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L47:
	movl	$1, %ebp
	jmp	.L19
.L9:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L10
.L25:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L26
.L27:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L28
.L11:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L12
.L29:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L30
.L13:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L14
.L80:
	movzbl	%bpl, %esi
	call	__overflow@PLT
	jmp	.L6
.L82:
	movzbl	%bl, %esi
	call	__overflow@PLT
	jmp	.L22
.L76:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld %ld %ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	movq	stdout(%rip), %rdi
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorl	%edx, %edx
	xorb	%ah, %al
	movq	16(%rsp), %rax
	movl	%eax, %ecx
	setnp	%dl
	shrl	$16, %ecx
	xorl	%ecx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %edx
	movq	40(%rdi), %rax
	je	.L102
	cmpq	48(%rdi), %rax
	jnb	.L92
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$89, (%rax)
.L93:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L94
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$69, (%rax)
.L95:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L96
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$83, (%rax)
.L97:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L103
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L99:
	movq	16(%rsp), %rdx
	movq	(%rsp), %rdi
	xorl	%r8d, %r8d
	orq	$-1, %rcx
	movq	8(%rsp), %rsi
	call	solve
.L91:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L104
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L102:
	.cfi_restore_state
	cmpq	%rax, 48(%rdi)
	jbe	.L86
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$78, (%rax)
.L87:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L88
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$79, (%rax)
.L89:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L105
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
	jmp	.L91
.L103:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L99
.L92:
	movl	$89, %esi
	call	__overflow@PLT
	jmp	.L93
.L94:
	movl	$69, %esi
	call	__overflow@PLT
	jmp	.L95
.L96:
	movl	$83, %esi
	call	__overflow@PLT
	jmp	.L97
.L105:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L91
.L86:
	movl	$78, %esi
	call	__overflow@PLT
	jmp	.L87
.L88:
	movl	$79, %esi
	call	__overflow@PLT
	jmp	.L89
.L104:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.type	solve, @function
solve:
.LFB23:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rcx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r8, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	cmpq	$1, %rdi
	je	.L36
.L2:
	movq	%rbx, %rax
	movq	%rbx, %r8
	subq	$1, %r15
	xorq	%r12, %rax
	movq	%r15, %rdi
	movq	%rax, %rdx
	negq	%rdx
	andq	%rax, %rdx
	xorq	%rdx, %r14
	movq	%rdx, %rbp
	movq	%r14, %rsi
	movq	%r14, %rcx
	andq	%rbx, %rsi
	movq	%r14, %rbx
	negq	%rbx
	xorq	%r8, %rbx
	andq	%rdx, %r8
	andq	%r14, %rbx
	orq	%r13, %r8
	movq	%rbx, %rdx
	call	solve
	movq	%rbp, %rdx
	andq	%r12, %rdx
	andq	%r14, %r12
	orq	%rdx, %r13
	cmpq	$1, %r15
	jne	.L2
.L36:
	movabsq	$7378697629483820647, %rsi
	orq	%r13, %rbx
	movq	%rbx, %rax
	movq	%rbx, %rbp
	imulq	%rsi
	movq	%rbx, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	movq	%rcx, %rdi
	addq	%rax, %rax
	subq	%rax, %rbp
	addl	$48, %ebp
	movb	%bpl, 7(%rsp)
	cmpq	$9, %rbx
	jle	.L38
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rdi, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	movq	%rcx, %r8
	addq	%rax, %rax
	subq	%rax, %rdi
	movq	%rdi, %rcx
	addl	$48, %ecx
	movb	%cl, 6(%rsp)
	cmpq	$99, %rbx
	jle	.L39
	movq	%r8, %rax
	imulq	%rsi
	movq	%r8, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	movq	%rcx, %r9
	movq	%r8, %rcx
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 5(%rsp)
	cmpq	$999, %rbx
	jle	.L40
	movq	%r9, %rax
	imulq	%rsi
	movq	%r9, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	movq	%rcx, %rdi
	movq	%r9, %rcx
	subq	%rax, %rdi
	leaq	(%rdi,%rdi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 4(%rsp)
	cmpq	$9999, %rbx
	jle	.L41
	movq	%rdi, %rax
	imulq	%rsi
	movq	%rdx, %rax
	movq	%rdi, %rdx
	sarq	$2, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %r8
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	subq	%rax, %rdi
	movq	%rdi, %rcx
	addl	$48, %ecx
	movb	%cl, 3(%rsp)
	cmpq	$99999, %rbx
	jle	.L42
	movq	%r8, %rax
	xorl	%ebx, %ebx
	imulq	%rsi
	movq	%r8, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	movq	%r8, %rax
	leaq	(%rdx,%rdx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rax
	addl	$48, %eax
	movb	%al, 2(%rsp)
.L3:
	movq	stdout(%rip), %rdi
	movzbl	2(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L4
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L5:
	cmpq	$5, %rbx
	je	.L6
	movq	stdout(%rip), %rdi
	movzbl	3(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L7
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L8:
	cmpq	$4, %rbx
	je	.L6
	movq	stdout(%rip), %rdi
	movzbl	4(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L9
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L10:
	cmpq	$3, %rbx
	je	.L6
	movq	stdout(%rip), %rdi
	movzbl	5(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L11
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L12:
	leaq	4(%rbx), %r14
	cmpq	$2, %rbx
	je	.L6
	movq	stdout(%rip), %rdi
	movzbl	2(%rsp,%r14), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L13
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L14:
	cmpq	$4, %r14
	jne	.L6
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L80
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%bpl, (%rax)
.L6:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L81
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$32, (%rax)
.L18:
	movabsq	$7378697629483820647, %rsi
	orq	%r13, %r12
	movq	%r12, %rax
	movq	%r12, %rbx
	imulq	%rsi
	movq	%r12, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rbx
	addl	$48, %ebx
	movb	%bl, 7(%rsp)
	cmpq	$9, %r12
	jle	.L43
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rdi
	subq	%rax, %rdi
	leaq	(%rdi,%rdi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 6(%rsp)
	cmpq	$99, %r12
	jle	.L44
	movq	%rdi, %rax
	imulq	%rsi
	movq	%rdi, %rax
	sarq	$63, %rax
	movq	%rdx, %rcx
	sarq	$2, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	movq	%rcx, %r8
	addq	%rax, %rax
	subq	%rax, %rdi
	movq	%rdi, %rcx
	addl	$48, %ecx
	movb	%cl, 5(%rsp)
	cmpq	$999, %r12
	jle	.L45
	movq	%r8, %rax
	movq	%r8, %rcx
	imulq	%rsi
	movq	%rdx, %rax
	movq	%r8, %rdx
	sarq	$2, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rdi
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 4(%rsp)
	cmpq	$9999, %r12
	jle	.L46
	movq	%rdi, %rax
	imulq	%rsi
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	%rdi, %rax
	leaq	(%rcx,%rcx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rax
	addl	$48, %eax
	movb	%al, 3(%rsp)
	cmpq	$99999, %r12
	jle	.L47
	movq	%rcx, %rax
	xorl	%ebp, %ebp
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 2(%rsp)
.L19:
	movq	stdout(%rip), %rdi
	movzbl	2(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L20
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L21:
	cmpq	$5, %rbp
	je	.L22
	movq	stdout(%rip), %rdi
	movzbl	3(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L23
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L24:
	cmpq	$4, %rbp
	je	.L22
	movq	stdout(%rip), %rdi
	movzbl	4(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L25
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L26:
	cmpq	$3, %rbp
	je	.L22
	movq	stdout(%rip), %rdi
	movzbl	5(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L27
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L28:
	leaq	4(%rbp), %r12
	cmpq	$2, %rbp
	je	.L22
	movq	stdout(%rip), %rdi
	movzbl	2(%rsp,%r12), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L29
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L30:
	cmpq	$4, %r12
	jne	.L22
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L82
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%bl, (%rax)
.L22:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L83
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$32, (%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$24, %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
.L41:
	.cfi_restore_state
	movl	$2, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L43:
	movl	$5, %ebp
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L38:
	movl	$5, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L44:
	movl	$4, %ebp
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L39:
	movl	$4, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L45:
	movl	$3, %ebp
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$3, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L81:
	movl	$32, %esi
	call	__overflow@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L4:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L83:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L76
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$32, %esi
	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
	jmp	__overflow@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L46:
	movl	$2, %ebp
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L23:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L7:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L42:
	movl	$1, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L47:
	movl	$1, %ebp
	jmp	.L19
.L9:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L10
.L25:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L26
.L27:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L28
.L11:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L12
.L29:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L30
.L13:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L14
.L80:
	movzbl	%bpl, %esi
	call	__overflow@PLT
	jmp	.L6
.L82:
	movzbl	%bl, %esi
	call	__overflow@PLT
	jmp	.L22
.L76:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld %ld %ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	movq	stdout(%rip), %rdi
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorl	%edx, %edx
	xorb	%ah, %al
	movq	16(%rsp), %rax
	movl	%eax, %ecx
	setnp	%dl
	shrl	$16, %ecx
	xorl	%ecx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %edx
	movq	40(%rdi), %rax
	je	.L102
	cmpq	48(%rdi), %rax
	jnb	.L92
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$89, (%rax)
.L93:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L94
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$69, (%rax)
.L95:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L96
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$83, (%rax)
.L97:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L103
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L99:
	movq	16(%rsp), %rdx
	movq	(%rsp), %rdi
	xorl	%r8d, %r8d
	orq	$-1, %rcx
	movq	8(%rsp), %rsi
	call	solve
.L91:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L104
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L102:
	.cfi_restore_state
	cmpq	%rax, 48(%rdi)
	jbe	.L86
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$78, (%rax)
.L87:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L88
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$79, (%rax)
.L89:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L105
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
	jmp	.L91
.L103:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L99
.L92:
	movl	$89, %esi
	call	__overflow@PLT
	jmp	.L93
.L94:
	movl	$69, %esi
	call	__overflow@PLT
	jmp	.L95
.L96:
	movl	$83, %esi
	call	__overflow@PLT
	jmp	.L97
.L105:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L91
.L86:
	movl	$78, %esi
	call	__overflow@PLT
	jmp	.L87
.L88:
	movl	$79, %esi
	call	__overflow@PLT
	jmp	.L89
.L104:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:

#include <stdio.h>
#define L 6
#define putlong_unlocked(X) \
    do{ \
        long n=X; \
        char c[L]; \
        long i=L-1; \
        do{ c[i]=n%10+'0'; n/=10; i--; }while(n>0); \
        for(i++;i<L;i++){ putchar_unlocked(c[i]); } \
    }while(0)
#define puts_unlocked(X) \
    do { \
        for(size_t i=0; X[i]!='\0'; i++){ \
            putchar_unlocked(X[i]); \
        } \
        putchar_unlocked('\n'); \
    }while(0)

static void solve(const long n, const long a, const long b, long mask, const long common){
    if(n==1){
        putlong_unlocked(common|a);
        putchar_unlocked(' ');
        putlong_unlocked(common|b);
        putchar_unlocked(' ');
    }else{
        const long t = a^b;
        const long d = t&(-t);
        mask ^= d;
        const long aa = a & mask;
        const long ab = aa ^ (mask&(-mask));
        solve(n-1, aa,     ab, mask, common|(a&d));
        solve(n-1, ab, b&mask, mask, common|(b&d));
    }
}

int main(void){
    long n, a, b;
    scanf("%ld %ld %ld", &n, &a, &b);
    if(__builtin_parity(a) == __builtin_parity(b)){
        puts_unlocked("NO");
    }else{
        puts_unlocked("YES");
        solve(n, a, b, 0xFFFFFFFFFFFFFFFF, 0);
    }
    return 0;
}

2 1 0
 2 0 0
 1 0 1
 2 2 0
 1 2 3
 1 3 2
 2 3 2
 2 0 2
 2 2 3
 2 3 1

YES
1 3 2 0  NO
 YES
0 1  YES
2 3 1 0  YES
2 3  YES
3 2  YES
3 1 0 2  YES
0 1 3 2  YES
2 0 1 3  YES
3 2 0 1 
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>
#define L 6
#define putlong_unlocked(X) \
    do{ \
        long n=X; \
        char c[L]; \
        long i=L-1; \
        do{ c[i]=n%10+'0'; n/=10; i--; }while(n>0); \
        for(i++;i<L;i++){ putchar_unlocked(c[i]); } \
    }while(0)
#define puts_unlocked(X) \
    do { \
        for(size_t i=0; X[i]!='\0'; i++){ \
            putchar_unlocked(X[i]); \
        } \
        putchar_unlocked('\n'); \
    }while(0)

static void solve(const long n, const long a, const long b, long mask, const long common){
    if(n==1){
        putlong_unlocked(common|a);
        putchar_unlocked(' ');
        putlong_unlocked(common|b);
        putchar_unlocked(' ');
    }else{
        const long t = a^b;
        const long d = t&(-t);
        mask ^= d;
        const long aa = a & mask;
        const long ab = aa ^ (mask&(-mask));
        solve(n-1, aa,     ab, mask, common|(a&d));
        solve(n-1, ab, b&mask, mask, common|(b&d));
    }
}

int main(void){
    long n, a, b;
    scanf("%ld %ld %ld", &n, &a, &b);
    if(__builtin_parity(a) == __builtin_parity(b)){
        puts_unlocked("NO");
    }else{
        puts_unlocked("YES");
        solve(n, a, b, 0xFFFFFFFFFFFFFFFF, 0);
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	solve, @function
solve:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movq	%rdi, -88(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%rdx, -104(%rbp)
	movq	%rcx, -112(%rbp)
	movq	%r8, -120(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpq	$1, -88(%rbp)
	jne	.L2
	movq	-120(%rbp), %rax
	orq	-96(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	$5, -72(%rbp)
.L3:
	movq	-80(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	leaq	-14(%rbp), %rcx
	movq	-72(%rbp), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	-80(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -80(%rbp)
	subq	$1, -72(%rbp)
	cmpq	$0, -80(%rbp)
	jg	.L3
	addq	$1, -72(%rbp)
	jmp	.L4
.L5:
	leaq	-14(%rbp), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -72(%rbp)
.L4:
	cmpq	$5, -72(%rbp)
	jle	.L5
	movl	$32, %edi
	call	putchar_unlocked@PLT
	movq	-120(%rbp), %rax
	orq	-104(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	$5, -56(%rbp)
.L6:
	movq	-64(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	leaq	-14(%rbp), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	-64(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -64(%rbp)
	subq	$1, -56(%rbp)
	cmpq	$0, -64(%rbp)
	jg	.L6
	addq	$1, -56(%rbp)
	jmp	.L7
.L8:
	leaq	-14(%rbp), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -56(%rbp)
.L7:
	cmpq	$5, -56(%rbp)
	jle	.L8
	movl	$32, %edi
	call	putchar_unlocked@PLT
	jmp	.L11
.L2:
	movq	-96(%rbp), %rax
	xorq	-104(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	-48(%rbp), %rax
	negq	%rax
	andq	-48(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	xorq	%rax, -112(%rbp)
	movq	-96(%rbp), %rax
	andq	-112(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-112(%rbp), %rax
	negq	%rax
	andq	-112(%rbp), %rax
	xorq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-96(%rbp), %rax
	andq	-40(%rbp), %rax
	orq	-120(%rbp), %rax
	movq	%rax, %rsi
	movq	-88(%rbp), %rax
	leaq	-1(%rax), %rdi
	movq	-112(%rbp), %rcx
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
	movq	-104(%rbp), %rax
	andq	-40(%rbp), %rax
	orq	-120(%rbp), %rax
	movq	%rax, %rsi
	movq	-104(%rbp), %rax
	andq	-112(%rbp), %rax
	movq	%rax, %rdx
	movq	-88(%rbp), %rax
	leaq	-1(%rax), %rdi
	movq	-112(%rbp), %rcx
	movq	-24(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
.L11:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %edx
	movq	-32(%rbp), %rax
	movl	%eax, %ecx
	shrl	$16, %ecx
	xorl	%ecx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %edx
	jne	.L13
	movq	$0, -24(%rbp)
	jmp	.L14
.L15:
	leaq	.LC1(%rip), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -24(%rbp)
.L14:
	leaq	.LC1(%rip), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L15
	movl	$10, %edi
	call	putchar_unlocked@PLT
	jmp	.L16
.L13:
	movq	$0, -16(%rbp)
	jmp	.L17
.L18:
	leaq	.LC2(%rip), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -16(%rbp)
.L17:
	leaq	.LC2(%rip), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L18
	movl	$10, %edi
	call	putchar_unlocked@PLT
	movq	-32(%rbp), %rdx
	movq	-40(%rbp), %rsi
	movq	-48(%rbp), %rax
	movl	$0, %r8d
	movq	$-1, %rcx
	movq	%rax, %rdi
	call	solve
.L16:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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
	.type	solve, @function
solve:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movq	%rdi, -88(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%rdx, -104(%rbp)
	movq	%rcx, -112(%rbp)
	movq	%r8, -120(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpq	$1, -88(%rbp)
	jne	.L2
	movq	-120(%rbp), %rax
	orq	-96(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	$5, -72(%rbp)
.L3:
	movq	-80(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	leaq	-14(%rbp), %rcx
	movq	-72(%rbp), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	-80(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -80(%rbp)
	subq	$1, -72(%rbp)
	cmpq	$0, -80(%rbp)
	jg	.L3
	addq	$1, -72(%rbp)
	jmp	.L4
.L5:
	leaq	-14(%rbp), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -72(%rbp)
.L4:
	cmpq	$5, -72(%rbp)
	jle	.L5
	movl	$32, %edi
	call	putchar_unlocked@PLT
	movq	-120(%rbp), %rax
	orq	-104(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	$5, -56(%rbp)
.L6:
	movq	-64(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	leaq	-14(%rbp), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	-64(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -64(%rbp)
	subq	$1, -56(%rbp)
	cmpq	$0, -64(%rbp)
	jg	.L6
	addq	$1, -56(%rbp)
	jmp	.L7
.L8:
	leaq	-14(%rbp), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -56(%rbp)
.L7:
	cmpq	$5, -56(%rbp)
	jle	.L8
	movl	$32, %edi
	call	putchar_unlocked@PLT
	jmp	.L11
.L2:
	movq	-96(%rbp), %rax
	xorq	-104(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	-48(%rbp), %rax
	negq	%rax
	andq	-48(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	xorq	%rax, -112(%rbp)
	movq	-96(%rbp), %rax
	andq	-112(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-112(%rbp), %rax
	negq	%rax
	andq	-112(%rbp), %rax
	xorq	-32(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-96(%rbp), %rax
	andq	-40(%rbp), %rax
	orq	-120(%rbp), %rax
	movq	%rax, %rsi
	movq	-88(%rbp), %rax
	leaq	-1(%rax), %rdi
	movq	-112(%rbp), %rcx
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
	movq	-104(%rbp), %rax
	andq	-40(%rbp), %rax
	orq	-120(%rbp), %rax
	movq	%rax, %rsi
	movq	-104(%rbp), %rax
	andq	-112(%rbp), %rax
	movq	%rax, %rdx
	movq	-88(%rbp), %rax
	leaq	-1(%rax), %rdi
	movq	-112(%rbp), %rcx
	movq	-24(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
.L11:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %edx
	movq	-32(%rbp), %rax
	movl	%eax, %ecx
	shrl	$16, %ecx
	xorl	%ecx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %edx
	jne	.L13
	movq	$0, -24(%rbp)
	jmp	.L14
.L15:
	leaq	.LC1(%rip), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -24(%rbp)
.L14:
	leaq	.LC1(%rip), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L15
	movl	$10, %edi
	call	putchar_unlocked@PLT
	jmp	.L16
.L13:
	movq	$0, -16(%rbp)
	jmp	.L17
.L18:
	leaq	.LC2(%rip), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -16(%rbp)
.L17:
	leaq	.LC2(%rip), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L18
	movl	$10, %edi
	call	putchar_unlocked@PLT
	movq	-32(%rbp), %rdx
	movq	-40(%rbp), %rsi
	movq	-48(%rbp), %rax
	movl	$0, %r8d
	movq	$-1, %rcx
	movq	%rax, %rdi
	call	solve
.L16:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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:
