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 ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
#define MOD 998244353
#define invp(a,p)pom(a,p-2,p)

//*
ll fact[100010];
ll invfact[100010];
void makefact(int n,ll m){
	fact[0]=1;
	rep(i,0,n)fact[i+1]=fact[i]*(i+1)%m;
	invfact[n]=invp(fact[n],m);
	for(int i=n;i>0;i--)invfact[i-1]=invfact[i]*i%m;
}
ll choose(int n,int r,int m){return n<0||r<0||n-r<0?0:fact[n]*invfact[r]%m*invfact[n-r]%m;}
//*/

ll dp[1010];
int main(){
	ll m,n,k;
	scanf("%lld%lld%lld",&m,&n,&k);
	makefact(2010,MOD);
	dp[1]=1;
	rep(i,2,k){
		dp[i]=pom(i,n,MOD);
		rep(x,1,i)dp[i]-=choose(i,x,MOD)*dp[x]%MOD;
		dp[i]%=MOD;
	}
	ll ans=pom(m,n,MOD);
	ll coe=m%MOD;
	rep(x,1,k){
		ans-=coe*dp[x]%MOD;
		coe=(m-x)%MOD*coe%MOD*invp(x+1,MOD)%MOD;
	}
	printf("%d\n",(ans%MOD+MOD)%MOD);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pom
	.type	pom, @function
pom:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	$1, -8(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	jmp	.L2
.L5:
	movq	-32(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L4
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -8(%rbp)
.L4:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
.L2:
	cmpq	$0, -32(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pom, .-pom
	.globl	fact
	.bss
	.align 32
	.type	fact, @object
	.size	fact, 800080
fact:
	.zero	800080
	.globl	invfact
	.align 32
	.type	invfact, @object
	.size	invfact, 800080
invfact:
	.zero	800080
	.text
	.globl	makefact
	.type	makefact, @function
makefact:
.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)
	movq	%rsi, -32(%rbp)
	movq	$1, fact(%rip)
	movq	$0, -8(%rbp)
	jmp	.L8
.L9:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	fact(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-8(%rbp), %rdx
	addq	$1, %rdx
	imulq	%rdx, %rax
	movq	-8(%rbp), %rdx
	leaq	1(%rdx), %rcx
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	leaq	0(,%rcx,8), %rdx
	leaq	fact(%rip), %rax
	movq	%rsi, (%rdx,%rax)
	addq	$1, -8(%rbp)
.L8:
	movl	-20(%rbp), %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jl	.L9
	movq	-32(%rbp), %rax
	movl	%eax, %esi
	movq	-32(%rbp), %rax
	leaq	-2(%rax), %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	fact(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%esi, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	pom
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	invfact(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	invfact(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movl	-12(%rbp), %edx
	leal	-1(%rdx), %ecx
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	movslq	%ecx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	invfact(%rip), %rax
	movq	%rsi, (%rdx,%rax)
	subl	$1, -12(%rbp)
.L10:
	cmpl	$0, -12(%rbp)
	jg	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	makefact, .-makefact
	.globl	choose
	.type	choose, @function
choose:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	cmpl	$0, -4(%rbp)
	js	.L13
	cmpl	$0, -8(%rbp)
	js	.L13
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	testl	%eax, %eax
	js	.L13
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	fact(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	invfact(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	invfact(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rcx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	jmp	.L15
.L13:
	movl	$0, %eax
.L15:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	choose, .-choose
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 8080
dp:
	.zero	8080
	.section	.rodata
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.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
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-72(%rbp), %rcx
	leaq	-80(%rbp), %rdx
	leaq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$998244353, %esi
	movl	$2010, %edi
	call	makefact
	movq	$1, 8+dp(%rip)
	movq	$2, -64(%rbp)
	jmp	.L17
.L20:
	movq	-80(%rbp), %rcx
	movq	-64(%rbp), %rax
	movl	$998244353, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	pom
	movq	-64(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	$1, -56(%rbp)
	jmp	.L18
.L19:
	movq	-56(%rbp), %rax
	movl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	$998244353, %edx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	choose
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	imulq	%rdx, %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	-64(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L18:
	movq	-56(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jl	.L19
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	-64(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -64(%rbp)
.L17:
	movq	-72(%rbp), %rax
	cmpq	%rax, -64(%rbp)
	jl	.L20
	movq	-80(%rbp), %rcx
	movq	-88(%rbp), %rax
	movl	$998244353, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	pom
	movq	%rax, -48(%rbp)
	movq	-88(%rbp), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	$1, -32(%rbp)
	jmp	.L21
.L22:
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-40(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	subq	%rax, -48(%rbp)
	movq	-88(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	-40(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rbx
	imulq	$998244353, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movl	$998244353, %edx
	movl	$998244351, %esi
	movq	%rax, %rdi
	call	pom
	imulq	%rax, %rbx
	movq	%rbx, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	addq	$1, -32(%rbp)
.L21:
	movq	-72(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jl	.L22
	movq	-48(%rbp), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	leaq	998244353(%rax), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	movq	-8(%rbp), %rbx
	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	pom
	.type	pom, @function
pom:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movslq	%edx, %r8
	movl	$1, %r9d
	cqto
	idivq	%r8
	movq	%rdx, %rcx
	testq	%rsi, %rsi
	je	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	testb	$1, %sil
	je	.L3
	movq	%r9, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rdx, %r9
.L3:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rsi, %rax
	shrq	$63, %rax
	addq	%rax, %rsi
	sarq	%rsi
	movq	%rdx, %rcx
	jne	.L4
.L1:
	movq	%r9, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	pom, .-pom
	.p2align 4
	.globl	makefact
	.type	makefact, @function
makefact:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %r9d
	movq	%rsi, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	fact(%rip), %r11
	movslq	%r9d, %rsi
	leaq	-2(%rdi), %r8
	movslq	%edi, %r10
	movq	$1, fact(%rip)
	testq	%rsi, %rsi
	jle	.L12
	movl	$1, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$1, %rcx
	movq	%rdx, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%rdi
	movq	%rdx, (%r11,%rcx,8)
	cmpq	%rsi, %rcx
	jne	.L13
	movq	%rdx, %rax
	cqto
	idivq	%r10
	movq	%rdx, %r11
	testq	%r8, %r8
	je	.L32
.L21:
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L17:
	testb	$1, %r8b
	je	.L16
	movq	%rbx, %rax
	imulq	%r11, %rax
	cqto
	idivq	%r10
	movq	%rdx, %rbx
.L16:
	movq	%r11, %rax
	movq	%r8, %rcx
	imulq	%r11, %rax
	shrq	$63, %rcx
	addq	%r8, %rcx
	cqto
	idivq	%r10
	sarq	%rcx
	movq	%rcx, %r8
	movq	%rdx, %r11
	jne	.L17
	leaq	invfact(%rip), %rax
	movq	%rbx, (%rax,%rsi,8)
	testl	%r9d, %r9d
	jle	.L11
.L18:
	movq	(%rax,%rsi,8), %rdx
	movq	%rsi, %rcx
	leaq	-8+invfact(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rdx, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%rdi
	movq	%rdx, (%rsi,%rcx,8)
	subq	$1, %rcx
	testl	%ecx, %ecx
	jg	.L19
.L11:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movq	(%r11,%rsi,8), %rax
	cqto
	idivq	%r10
	movq	%rdx, %r11
	testq	%r8, %r8
	jne	.L21
	leaq	invfact(%rip), %rax
	movq	$1, (%rax,%rsi,8)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	leaq	invfact(%rip), %rax
	movq	$1, (%rax,%rsi,8)
	jmp	.L18
	.cfi_endproc
.LFE24:
	.size	makefact, .-makefact
	.p2align 4
	.globl	choose
	.type	choose, @function
choose:
.LFB25:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	xorl	%r8d, %r8d
	orl	%esi, %eax
	js	.L33
	movl	%edi, %r9d
	subl	%esi, %r9d
	js	.L33
	leaq	invfact(%rip), %r8
	movslq	%edi, %rdi
	movslq	%esi, %rsi
	movslq	%edx, %rcx
	leaq	fact(%rip), %rax
	movslq	%r9d, %r9
	movq	(%rax,%rdi,8), %rax
	imulq	(%r8,%rsi,8), %rax
	cqto
	idivq	%rcx
	movq	(%r8,%r9,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %r8
.L33:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE25:
	.size	choose, .-choose
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	$998244353, %esi
	movl	$2010, %edi
	call	makefact
	movq	32(%rsp), %rax
	movq	24(%rsp), %rbp
	movq	$1, 8+dp(%rip)
	movq	%rax, (%rsp)
	cmpq	$2, %rax
	jle	.L38
	movq	%rbp, 8(%rsp)
	leaq	16+dp(%rip), %rbx
	leaq	16+invfact(%rip), %r12
	movl	$2, %r11d
	movabsq	$155014655926305585, %r9
	leaq	fact(%rip), %r15
	leaq	-16(%rbx), %r14
	movabsq	$-8525806094425994177, %r13
	.p2align 4,,10
	.p2align 3
.L46:
	movq	8(%rsp), %rcx
	testq	%rcx, %rcx
	je	.L58
	movq	%r11, %rsi
	movl	$1, %edi
	movq	%rcx, %r8
	.p2align 4,,10
	.p2align 3
.L41:
	testb	$1, %r8b
	je	.L40
	imulq	%rsi, %rdi
	movq	%rdi, %rax
	movq	%rdi, %rcx
	imulq	%r9
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	movq	%rdx, %rdi
	subq	%rax, %rdi
	imulq	$998244353, %rdi, %rax
	movq	%rcx, %rdi
	subq	%rax, %rdi
.L40:
	movq	%rsi, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	mulq	%r13
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$998244353, %rsi, %rax
	subq	%rax, %rcx
	movq	%rcx, %rsi
	movq	%r8, %rcx
	shrq	$63, %rcx
	addq	%r8, %rcx
	sarq	%rcx
	movq	%rcx, %r8
	jne	.L41
.L39:
	movl	$1, %esi
	movl	%r11d, %ebp
	movq	%r12, %r10
	movl	$1, %r8d
	movq	%rsi, %rcx
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L79:
	leaq	invfact(%rip), %rax
	movq	(%r15,%r11,8), %rsi
	subq	$8, %r10
	imulq	(%rax,%r8,8), %rsi
	addq	$1, %r8
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	(%r10), %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	subq	%rsi, %rdi
	movq	%rdi, (%rbx)
	cmpq	%r8, %r11
	je	.L44
.L43:
	movq	(%r14,%r8,8), %rcx
.L45:
	cmpl	%r8d, %ebp
	jns	.L79
	addq	$1, %r8
	movq	%rdi, (%rbx)
	subq	$8, %r10
	cmpq	%r11, %r8
	jne	.L43
.L44:
	movq	%rdi, %rax
	addq	$1, %r11
	addq	$8, %rbx
	addq	$8, %r12
	imulq	%r9
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rdi
	movq	%rdi, -8(%rbx)
	cmpq	(%rsp), %r11
	jne	.L46
	movq	16(%rsp), %r11
	movq	8(%rsp), %rbp
	movl	$1, %r12d
	movq	%r11, %rax
	imulq	%r9
	movq	%r11, %rax
	sarq	$63, %rax
	movq	%rdx, %r9
	sarq	$23, %r9
	subq	%rax, %r9
	imulq	$998244353, %r9, %rax
	movq	%r11, %r9
	subq	%rax, %r9
	testq	%rbp, %rbp
	je	.L56
.L55:
	movq	%r9, %rcx
	movl	$1, %r12d
	movabsq	$155014655926305585, %r8
	movabsq	$-8525806094425994177, %rdi
	.p2align 4,,10
	.p2align 3
.L50:
	testb	$1, %bpl
	je	.L49
	movq	%r12, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r8
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r12
.L49:
	movq	%rcx, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	mulq	%rdi
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%rbp, %rax
	shrq	$63, %rax
	movq	%rsi, %rcx
	addq	%rax, %rbp
	sarq	%rbp
	jne	.L50
.L48:
	cmpq	$1, (%rsp)
	jle	.L51
.L56:
	movq	(%rsp), %r15
	movl	$1, %ebp
	movq	%r9, %rcx
	leaq	dp(%rip), %r13
	movabsq	$155014655926305585, %rbx
	movabsq	$-8525806094425994177, %r10
	.p2align 4,,10
	.p2align 3
.L54:
	movq	0(%r13,%rbp,8), %rsi
	movq	%r11, %r9
	movl	$30, %r8d
	movl	$998244351, %edi
	subq	%rbp, %r9
	addq	$1, %rbp
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%rbx
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movq	%r9, %rax
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rbx
	movq	%r9, %rax
	sarq	$63, %rax
	subq	%rsi, %r12
	movl	$1, %esi
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %r9
	imulq	%rcx, %r9
	movq	%rbp, %rcx
	movq	%r9, %rax
	movq	%r9, %r14
	imulq	%rbx
	movq	%r9, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L53:
	testb	$1, %dil
	je	.L52
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	movq	%rsi, %r9
	imulq	%rbx
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	imulq	$998244353, %rsi, %rax
	movq	%r9, %rsi
	subq	%rax, %rsi
.L52:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	mulq	%r10
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rdi, %rax
	shrq	$63, %rax
	addq	%rax, %rdi
	sarq	%rdi
	subl	$1, %r8d
	jne	.L53
	imulq	%rsi, %r14
	movq	%r14, %rax
	movq	%r14, %rcx
	imulq	%rbx
	movq	%r14, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	cmpq	%rbp, %r15
	jg	.L54
.L51:
	movq	%r12, %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movabsq	$155014655926305585, %rdx
	imulq	%rdx
	movq	%r12, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	movabsq	$-8525806094425994177, %rdx
	subq	%rax, %r12
	leaq	998244353(%r12), %rcx
	movq	%rcx, %rax
	mulq	%rdx
	xorl	%eax, %eax
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L80
	addq	$56, %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
.L58:
	.cfi_restore_state
	movl	$1, %edi
	jmp	.L39
.L38:
	movq	16(%rsp), %r11
	movl	$998244353, %ebx
	movq	%r11, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r9
	testq	%rbp, %rbp
	jne	.L55
	movl	$1, %r12d
	jmp	.L48
.L80:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 8080
dp:
	.zero	8080
	.globl	invfact
	.align 32
	.type	invfact, @object
	.size	invfact, 800080
invfact:
	.zero	800080
	.globl	fact
	.align 32
	.type	fact, @object
	.size	fact, 800080
fact:
	.zero	800080
	.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	pom
	.type	pom, @function
pom:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movslq	%edx, %r8
	movl	$1, %r9d
	cqto
	idivq	%r8
	movq	%rdx, %rcx
	testq	%rsi, %rsi
	je	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	testb	$1, %sil
	je	.L3
	movq	%r9, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rdx, %r9
.L3:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rsi, %rax
	shrq	$63, %rax
	addq	%rax, %rsi
	sarq	%rsi
	movq	%rdx, %rcx
	jne	.L4
.L1:
	movq	%r9, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	pom, .-pom
	.p2align 4
	.globl	makefact
	.type	makefact, @function
makefact:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %r9d
	movq	%rsi, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	fact(%rip), %r11
	movslq	%r9d, %rsi
	leaq	-2(%rdi), %r8
	movslq	%edi, %r10
	movq	$1, fact(%rip)
	testq	%rsi, %rsi
	jle	.L12
	movl	$1, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$1, %rcx
	movq	%rdx, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%rdi
	movq	%rdx, (%r11,%rcx,8)
	cmpq	%rsi, %rcx
	jne	.L13
	movq	%rdx, %rax
	cqto
	idivq	%r10
	movq	%rdx, %r11
	testq	%r8, %r8
	je	.L32
.L21:
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L17:
	testb	$1, %r8b
	je	.L16
	movq	%rbx, %rax
	imulq	%r11, %rax
	cqto
	idivq	%r10
	movq	%rdx, %rbx
.L16:
	movq	%r11, %rax
	movq	%r8, %rcx
	imulq	%r11, %rax
	shrq	$63, %rcx
	addq	%r8, %rcx
	cqto
	idivq	%r10
	sarq	%rcx
	movq	%rcx, %r8
	movq	%rdx, %r11
	jne	.L17
	leaq	invfact(%rip), %rax
	movq	%rbx, (%rax,%rsi,8)
	testl	%r9d, %r9d
	jle	.L11
.L18:
	movq	(%rax,%rsi,8), %rdx
	movq	%rsi, %rcx
	leaq	-8+invfact(%rip), %rsi
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rdx, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%rdi
	movq	%rdx, (%rsi,%rcx,8)
	subq	$1, %rcx
	testl	%ecx, %ecx
	jg	.L19
.L11:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movq	(%r11,%rsi,8), %rax
	cqto
	idivq	%r10
	movq	%rdx, %r11
	testq	%r8, %r8
	jne	.L21
	leaq	invfact(%rip), %rax
	movq	$1, (%rax,%rsi,8)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	leaq	invfact(%rip), %rax
	movq	$1, (%rax,%rsi,8)
	jmp	.L18
	.cfi_endproc
.LFE24:
	.size	makefact, .-makefact
	.p2align 4
	.globl	choose
	.type	choose, @function
choose:
.LFB25:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	xorl	%r8d, %r8d
	orl	%esi, %eax
	js	.L33
	movl	%edi, %r9d
	subl	%esi, %r9d
	js	.L33
	leaq	invfact(%rip), %r8
	movslq	%edi, %rdi
	movslq	%esi, %rsi
	movslq	%edx, %rcx
	leaq	fact(%rip), %rax
	movslq	%r9d, %r9
	movq	(%rax,%rdi,8), %rax
	imulq	(%r8,%rsi,8), %rax
	cqto
	idivq	%rcx
	movq	(%r8,%r9,8), %rax
	imulq	%rdx, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %r8
.L33:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE25:
	.size	choose, .-choose
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	$998244353, %esi
	movl	$2010, %edi
	call	makefact
	movq	32(%rsp), %rax
	movq	24(%rsp), %rbp
	movq	$1, 8+dp(%rip)
	movq	%rax, (%rsp)
	cmpq	$2, %rax
	jle	.L38
	movq	%rbp, 8(%rsp)
	leaq	16+dp(%rip), %rbx
	leaq	16+invfact(%rip), %r12
	movl	$2, %r11d
	movabsq	$155014655926305585, %r9
	leaq	fact(%rip), %r15
	leaq	-16(%rbx), %r14
	movabsq	$-8525806094425994177, %r13
	.p2align 4,,10
	.p2align 3
.L46:
	movq	8(%rsp), %rcx
	testq	%rcx, %rcx
	je	.L58
	movq	%r11, %rsi
	movl	$1, %edi
	movq	%rcx, %r8
	.p2align 4,,10
	.p2align 3
.L41:
	testb	$1, %r8b
	je	.L40
	imulq	%rsi, %rdi
	movq	%rdi, %rax
	movq	%rdi, %rcx
	imulq	%r9
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	movq	%rdx, %rdi
	subq	%rax, %rdi
	imulq	$998244353, %rdi, %rax
	movq	%rcx, %rdi
	subq	%rax, %rdi
.L40:
	movq	%rsi, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	mulq	%r13
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$998244353, %rsi, %rax
	subq	%rax, %rcx
	movq	%rcx, %rsi
	movq	%r8, %rcx
	shrq	$63, %rcx
	addq	%r8, %rcx
	sarq	%rcx
	movq	%rcx, %r8
	jne	.L41
.L39:
	movl	$1, %esi
	movl	%r11d, %ebp
	movq	%r12, %r10
	movl	$1, %r8d
	movq	%rsi, %rcx
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L79:
	leaq	invfact(%rip), %rax
	movq	(%r15,%r11,8), %rsi
	subq	$8, %r10
	imulq	(%rax,%r8,8), %rsi
	addq	$1, %r8
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	(%r10), %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r9
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	subq	%rsi, %rdi
	movq	%rdi, (%rbx)
	cmpq	%r8, %r11
	je	.L44
.L43:
	movq	(%r14,%r8,8), %rcx
.L45:
	cmpl	%r8d, %ebp
	jns	.L79
	addq	$1, %r8
	movq	%rdi, (%rbx)
	subq	$8, %r10
	cmpq	%r11, %r8
	jne	.L43
.L44:
	movq	%rdi, %rax
	addq	$1, %r11
	addq	$8, %rbx
	addq	$8, %r12
	imulq	%r9
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rdi
	movq	%rdi, -8(%rbx)
	cmpq	(%rsp), %r11
	jne	.L46
	movq	16(%rsp), %r11
	movq	8(%rsp), %rbp
	movl	$1, %r12d
	movq	%r11, %rax
	imulq	%r9
	movq	%r11, %rax
	sarq	$63, %rax
	movq	%rdx, %r9
	sarq	$23, %r9
	subq	%rax, %r9
	imulq	$998244353, %r9, %rax
	movq	%r11, %r9
	subq	%rax, %r9
	testq	%rbp, %rbp
	je	.L56
.L55:
	movq	%r9, %rcx
	movl	$1, %r12d
	movabsq	$155014655926305585, %r8
	movabsq	$-8525806094425994177, %rdi
	.p2align 4,,10
	.p2align 3
.L50:
	testb	$1, %bpl
	je	.L49
	movq	%r12, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r8
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r12
.L49:
	movq	%rcx, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	mulq	%rdi
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rsi
	movq	%rbp, %rax
	shrq	$63, %rax
	movq	%rsi, %rcx
	addq	%rax, %rbp
	sarq	%rbp
	jne	.L50
.L48:
	cmpq	$1, (%rsp)
	jle	.L51
.L56:
	movq	(%rsp), %r15
	movl	$1, %ebp
	movq	%r9, %rcx
	leaq	dp(%rip), %r13
	movabsq	$155014655926305585, %rbx
	movabsq	$-8525806094425994177, %r10
	.p2align 4,,10
	.p2align 3
.L54:
	movq	0(%r13,%rbp,8), %rsi
	movq	%r11, %r9
	movl	$30, %r8d
	movl	$998244351, %edi
	subq	%rbp, %r9
	addq	$1, %rbp
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%rbx
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movq	%r9, %rax
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rbx
	movq	%r9, %rax
	sarq	$63, %rax
	subq	%rsi, %r12
	movl	$1, %esi
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %r9
	imulq	%rcx, %r9
	movq	%rbp, %rcx
	movq	%r9, %rax
	movq	%r9, %r14
	imulq	%rbx
	movq	%r9, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L53:
	testb	$1, %dil
	je	.L52
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	movq	%rsi, %r9
	imulq	%rbx
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	imulq	$998244353, %rsi, %rax
	movq	%r9, %rsi
	subq	%rax, %rsi
.L52:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	mulq	%r10
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rdi, %rax
	shrq	$63, %rax
	addq	%rax, %rdi
	sarq	%rdi
	subl	$1, %r8d
	jne	.L53
	imulq	%rsi, %r14
	movq	%r14, %rax
	movq	%r14, %rcx
	imulq	%rbx
	movq	%r14, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	cmpq	%rbp, %r15
	jg	.L54
.L51:
	movq	%r12, %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movabsq	$155014655926305585, %rdx
	imulq	%rdx
	movq	%r12, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	movabsq	$-8525806094425994177, %rdx
	subq	%rax, %r12
	leaq	998244353(%r12), %rcx
	movq	%rcx, %rax
	mulq	%rdx
	xorl	%eax, %eax
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L80
	addq	$56, %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
.L58:
	.cfi_restore_state
	movl	$1, %edi
	jmp	.L39
.L38:
	movq	16(%rsp), %r11
	movl	$998244353, %ebx
	movq	%r11, %rax
	cqto
	idivq	%rbx
	movq	%rdx, %r9
	testq	%rbp, %rbp
	jne	.L55
	movl	$1, %r12d
	jmp	.L48
.L80:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 8080
dp:
	.zero	8080
	.globl	invfact
	.align 32
	.type	invfact, @object
	.size	invfact, 800080
invfact:
	.zero	800080
	.globl	fact
	.align 32
	.type	fact, @object
	.size	fact, 800080
fact:
	.zero	800080
	.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 ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
#define MOD 998244353
#define invp(a,p)pom(a,p-2,p)

//*
ll fact[100010];
ll invfact[100010];
void makefact(int n,ll m){
	fact[0]=1;
	rep(i,0,n)fact[i+1]=fact[i]*(i+1)%m;
	invfact[n]=invp(fact[n],m);
	for(int i=n;i>0;i--)invfact[i-1]=invfact[i]*i%m;
}
ll choose(int n,int r,int m){return n<0||r<0||n-r<0?0:fact[n]*invfact[r]%m*invfact[n-r]%m;}
//*/

ll dp[1010];
int main(){
	ll m,n,k;
	scanf("%lld%lld%lld",&m,&n,&k);
	makefact(2010,MOD);
	dp[1]=1;
	rep(i,2,k){
		dp[i]=pom(i,n,MOD);
		rep(x,1,i)dp[i]-=choose(i,x,MOD)*dp[x]%MOD;
		dp[i]%=MOD;
	}
	ll ans=pom(m,n,MOD);
	ll coe=m%MOD;
	rep(x,1,k){
		ans-=coe*dp[x]%MOD;
		coe=(m-x)%MOD*coe%MOD*invp(x+1,MOD)%MOD;
	}
	printf("%d\n",(ans%MOD+MOD)%MOD);
}

10 8 3
 1000000000000000000 1000000000000000000 1001
 5 2 3
 10 8 6
 2 2 2
 1 10 1
 10 6 6
 2 3 2
 2 10 2
 2 11 2

99988560
 824796085
 0
 58968000
 2
 1
 151200
 6
 1022
 2046

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 ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
#define MOD 998244353
#define invp(a,p)pom(a,p-2,p)

//*
ll fact[100010];
ll invfact[100010];
void makefact(int n,ll m){
	fact[0]=1;
	rep(i,0,n)fact[i+1]=fact[i]*(i+1)%m;
	invfact[n]=invp(fact[n],m);
	for(int i=n;i>0;i--)invfact[i-1]=invfact[i]*i%m;
}
ll choose(int n,int r,int m){return n<0||r<0||n-r<0?0:fact[n]*invfact[r]%m*invfact[n-r]%m;}
//*/

ll dp[1010];
int main(){
	ll m,n,k;
	scanf("%lld%lld%lld",&m,&n,&k);
	makefact(2010,MOD);
	dp[1]=1;
	rep(i,2,k){
		dp[i]=pom(i,n,MOD);
		rep(x,1,i)dp[i]-=choose(i,x,MOD)*dp[x]%MOD;
		dp[i]%=MOD;
	}
	ll ans=pom(m,n,MOD);
	ll coe=m%MOD;
	rep(x,1,k){
		ans-=coe*dp[x]%MOD;
		coe=(m-x)%MOD*coe%MOD*invp(x+1,MOD)%MOD;
	}
	printf("%d\n",(ans%MOD+MOD)%MOD);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	pom
	.type	pom, @function
pom:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	$1, -8(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	jmp	.L2
.L5:
	movq	-32(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L4
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -8(%rbp)
.L4:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
.L2:
	cmpq	$0, -32(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pom, .-pom
	.globl	fact
	.bss
	.align 32
	.type	fact, @object
	.size	fact, 800080
fact:
	.zero	800080
	.globl	invfact
	.align 32
	.type	invfact, @object
	.size	invfact, 800080
invfact:
	.zero	800080
	.text
	.globl	makefact
	.type	makefact, @function
makefact:
.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)
	movq	%rsi, -32(%rbp)
	movq	$1, fact(%rip)
	movq	$0, -8(%rbp)
	jmp	.L8
.L9:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	fact(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-8(%rbp), %rdx
	addq	$1, %rdx
	imulq	%rdx, %rax
	movq	-8(%rbp), %rdx
	leaq	1(%rdx), %rcx
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	leaq	0(,%rcx,8), %rdx
	leaq	fact(%rip), %rax
	movq	%rsi, (%rdx,%rax)
	addq	$1, -8(%rbp)
.L8:
	movl	-20(%rbp), %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jl	.L9
	movq	-32(%rbp), %rax
	movl	%eax, %esi
	movq	-32(%rbp), %rax
	leaq	-2(%rax), %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	fact(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%esi, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	pom
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	invfact(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	invfact(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movl	-12(%rbp), %edx
	leal	-1(%rdx), %ecx
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	movslq	%ecx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	invfact(%rip), %rax
	movq	%rsi, (%rdx,%rax)
	subl	$1, -12(%rbp)
.L10:
	cmpl	$0, -12(%rbp)
	jg	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	makefact, .-makefact
	.globl	choose
	.type	choose, @function
choose:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	cmpl	$0, -4(%rbp)
	js	.L13
	cmpl	$0, -8(%rbp)
	js	.L13
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	testl	%eax, %eax
	js	.L13
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	fact(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	invfact(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	invfact(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rcx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	jmp	.L15
.L13:
	movl	$0, %eax
.L15:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	choose, .-choose
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 8080
dp:
	.zero	8080
	.section	.rodata
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.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
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-72(%rbp), %rcx
	leaq	-80(%rbp), %rdx
	leaq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$998244353, %esi
	movl	$2010, %edi
	call	makefact
	movq	$1, 8+dp(%rip)
	movq	$2, -64(%rbp)
	jmp	.L17
.L20:
	movq	-80(%rbp), %rcx
	movq	-64(%rbp), %rax
	movl	$998244353, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	pom
	movq	-64(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	$1, -56(%rbp)
	jmp	.L18
.L19:
	movq	-56(%rbp), %rax
	movl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	$998244353, %edx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	choose
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	imulq	%rdx, %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	-64(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L18:
	movq	-56(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jl	.L19
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	-64(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -64(%rbp)
.L17:
	movq	-72(%rbp), %rax
	cmpq	%rax, -64(%rbp)
	jl	.L20
	movq	-80(%rbp), %rcx
	movq	-88(%rbp), %rax
	movl	$998244353, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	pom
	movq	%rax, -48(%rbp)
	movq	-88(%rbp), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	$1, -32(%rbp)
	jmp	.L21
.L22:
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-40(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	subq	%rax, -48(%rbp)
	movq	-88(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	-40(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rbx
	imulq	$998244353, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movl	$998244353, %edx
	movl	$998244351, %esi
	movq	%rax, %rdi
	call	pom
	imulq	%rax, %rbx
	movq	%rbx, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	addq	$1, -32(%rbp)
.L21:
	movq	-72(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jl	.L22
	movq	-48(%rbp), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	leaq	998244353(%rax), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	movq	-8(%rbp), %rbx
	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	pom
	.type	pom, @function
pom:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	$1, -8(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	jmp	.L2
.L5:
	movq	-32(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L4
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -8(%rbp)
.L4:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
.L2:
	cmpq	$0, -32(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pom, .-pom
	.globl	fact
	.bss
	.align 32
	.type	fact, @object
	.size	fact, 800080
fact:
	.zero	800080
	.globl	invfact
	.align 32
	.type	invfact, @object
	.size	invfact, 800080
invfact:
	.zero	800080
	.text
	.globl	makefact
	.type	makefact, @function
makefact:
.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)
	movq	%rsi, -32(%rbp)
	movq	$1, fact(%rip)
	movq	$0, -8(%rbp)
	jmp	.L8
.L9:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	fact(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-8(%rbp), %rdx
	addq	$1, %rdx
	imulq	%rdx, %rax
	movq	-8(%rbp), %rdx
	leaq	1(%rdx), %rcx
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	leaq	0(,%rcx,8), %rdx
	leaq	fact(%rip), %rax
	movq	%rsi, (%rdx,%rax)
	addq	$1, -8(%rbp)
.L8:
	movl	-20(%rbp), %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jl	.L9
	movq	-32(%rbp), %rax
	movl	%eax, %esi
	movq	-32(%rbp), %rax
	leaq	-2(%rax), %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	fact(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%esi, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	pom
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	invfact(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	invfact(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movl	-12(%rbp), %edx
	leal	-1(%rdx), %ecx
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rsi
	movslq	%ecx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	invfact(%rip), %rax
	movq	%rsi, (%rdx,%rax)
	subl	$1, -12(%rbp)
.L10:
	cmpl	$0, -12(%rbp)
	jg	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	makefact, .-makefact
	.globl	choose
	.type	choose, @function
choose:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	cmpl	$0, -4(%rbp)
	js	.L13
	cmpl	$0, -8(%rbp)
	js	.L13
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	testl	%eax, %eax
	js	.L13
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	fact(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	invfact(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	invfact(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rcx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	jmp	.L15
.L13:
	movl	$0, %eax
.L15:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	choose, .-choose
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 8080
dp:
	.zero	8080
	.section	.rodata
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.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
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-72(%rbp), %rcx
	leaq	-80(%rbp), %rdx
	leaq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$998244353, %esi
	movl	$2010, %edi
	call	makefact
	movq	$1, 8+dp(%rip)
	movq	$2, -64(%rbp)
	jmp	.L17
.L20:
	movq	-80(%rbp), %rcx
	movq	-64(%rbp), %rax
	movl	$998244353, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	pom
	movq	-64(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	$1, -56(%rbp)
	jmp	.L18
.L19:
	movq	-56(%rbp), %rax
	movl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	$998244353, %edx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	choose
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	imulq	%rdx, %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	-64(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L18:
	movq	-56(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jl	.L19
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	-64(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -64(%rbp)
.L17:
	movq	-72(%rbp), %rax
	cmpq	%rax, -64(%rbp)
	jl	.L20
	movq	-80(%rbp), %rcx
	movq	-88(%rbp), %rax
	movl	$998244353, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	pom
	movq	%rax, -48(%rbp)
	movq	-88(%rbp), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	$1, -32(%rbp)
	jmp	.L21
.L22:
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	-40(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	subq	%rax, -48(%rbp)
	movq	-88(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	-40(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rbx
	imulq	$998244353, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movl	$998244353, %edx
	movl	$998244351, %esi
	movq	%rax, %rdi
	call	pom
	imulq	%rax, %rbx
	movq	%rbx, %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	addq	$1, -32(%rbp)
.L21:
	movq	-72(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jl	.L22
	movq	-48(%rbp), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	leaq	998244353(%rax), %rcx
	movabsq	$155014655926305585, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$23, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	movq	-8(%rbp), %rbx
	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:
