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

```c
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

#define P 998244353

int k[200000];
int rk[200000];

int getk(int a, int x){
	if(x==1) return a;
	int b = getk(a, x/2);
	b = ((long)b)*b%P;
	if((x&1)==0){
		return b;
	}else{
		return ((long)b)*a%P;
	}
}
 
int comb(int a, int b){
	if(a<b) return 0;
	return ((long)k[a])*rk[b]%P*rk[a-b]%P;
}

void init(int n){
	k[0]=1;
	for(int i=1; i<=n; i++){
		k[i]=k[i-1]*((long)i)%P;
	}	
	rk[n]=getk(k[n], P-2);
	for(int i=n-1; i>=0; i--){
		rk[i]=((long)rk[i+1])*(i+1)%P;
	}
}
uint32_t nextpint(void){ char c=getchar_unlocked(); while(c<'0'||'9'<c) c=getchar_unlocked(); uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return x; }

int main(void){
	uint32_t n=nextpint();
	uint32_t m=nextpint();
	uint32_t k=nextpint();
	init(n-1);
	uint64_t ans=0;
	uint64_t sh = m--;
	for(uint32_t i=n-k-1; i>0; i--) sh=sh*m%P;
	for(uint32_t i=k; i>0; i--){
		uint64_t now = sh * comb(n-1, i) % P;
		ans+=now;
		sh=sh*m%P;
	}
	ans+=sh;
	printf("%"PRIu64"\n", ans%P);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	k
	.bss
	.align 32
	.type	k, @object
	.size	k, 800000
k:
	.zero	800000
	.globl	rk
	.align 32
	.type	rk, @object
	.size	rk, 800000
rk:
	.zero	800000
	.text
	.globl	getk
	.type	getk, @function
getk:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$1, -24(%rbp)
	jne	.L2
	movl	-20(%rbp), %eax
	jmp	.L3
.L2:
	movl	-24(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	getk
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	-4(%rbp), %eax
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getk, .-getk
	.globl	comb
	.type	comb, @function
comb:
.LFB7:
	.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	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L6
	movl	$0, %eax
	jmp	.L7
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rk(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	-4(%rbp), %edx
	subl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	rk(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %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
.L7:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comb, .-comb
	.globl	init
	.type	init, @function
init:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	$1, k(%rip)
	movl	$1, -8(%rbp)
	jmp	.L9
.L10:
	movl	-8(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L9:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	$998244351, %esi
	movl	%eax, %edi
	call	getk
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	rk(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L11
.L12:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rk(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rk(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	subl	$1, -4(%rbp)
.L11:
	cmpl	$0, -4(%rbp)
	jns	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init, .-init
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L14
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L14:
	cmpb	$47, -5(%rbp)
	jle	.L15
	cmpb	$57, -5(%rbp)
	jg	.L15
	movl	$0, -4(%rbp)
	jmp	.L16
.L18:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L16:
	cmpb	$47, -5(%rbp)
	jle	.L17
	cmpb	$57, -5(%rbp)
	jle	.L18
.L17:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextpint, .-nextpint
	.section	.rodata
.LC0:
	.string	"%lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
	call	nextpint
	movl	%eax, -36(%rbp)
	call	nextpint
	movl	%eax, -32(%rbp)
	call	nextpint
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	init
	movq	$0, -24(%rbp)
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	movl	%eax, %eax
	movq	%rax, -16(%rbp)
	movl	-36(%rbp), %eax
	subl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L21
.L22:
	movl	-32(%rbp), %eax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	subl	$1, -44(%rbp)
.L21:
	cmpl	$0, -44(%rbp)
	jne	.L22
	movl	-28(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L23
.L24:
	movl	-40(%rbp), %eax
	movl	-36(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	comb
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	addq	%rax, -24(%rbp)
	movl	-32(%rbp), %eax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	subl	$1, -40(%rbp)
.L23:
	cmpl	$0, -40(%rbp)
	jne	.L24
	movq	-16(%rbp), %rax
	addq	%rax, -24(%rbp)
	movq	-24(%rbp), %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	getk
	.type	getk, @function
getk:
.LFB63:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	cmpl	$1, %esi
	je	.L23
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%edi, %ecx
	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
	movl	%esi, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	shrl	$31, %r12d
	movl	%esi, %ebx
	addl	%esi, %r12d
	sarl	%r12d
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	cmpl	$1, %r12d
	je	.L3
	testl	%esi, %esi
	leal	3(%rsi), %r13d
	cmovns	%esi, %r13d
	sarl	$2, %r13d
	cmpl	$1, %r13d
	je	.L4
	testl	%esi, %esi
	leal	7(%rsi), %r14d
	cmovns	%esi, %r14d
	sarl	$3, %r14d
	cmpl	$1, %r14d
	je	.L5
	testl	%esi, %esi
	leal	15(%rsi), %r15d
	cmovns	%esi, %r15d
	sarl	$4, %r15d
	cmpl	$1, %r15d
	je	.L6
	testl	%ebx, %ebx
	leal	31(%rsi), %esi
	movl	%edi, 12(%rsp)
	cmovns	%ebx, %esi
	sarl	$5, %esi
	call	getk
	movl	12(%rsp), %edi
	movabsq	$155014655926305585, %rsi
	movslq	%eax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	andl	$1, %r15d
	movq	%rcx, %rdx
	je	.L6
	movslq	%edi, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subl	%eax, %ecx
.L6:
	movabsq	$155014655926305585, %rsi
	movslq	%ecx, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	andl	$1, %r14d
	movl	%edx, %ecx
	je	.L5
	movslq	%edi, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %ecx
.L5:
	movabsq	$155014655926305585, %rsi
	movslq	%ecx, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	andl	$1, %r13d
	movq	%rcx, %rdx
	jne	.L27
.L4:
	movabsq	$155014655926305585, %rsi
	movslq	%ecx, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	andl	$1, %r12d
	movl	%edx, %ecx
	je	.L3
	movslq	%edi, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %ecx
.L3:
	movabsq	$155014655926305585, %rsi
	movslq	%ecx, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	andl	$1, %ebx
	movl	%ecx, %eax
	je	.L1
	movslq	%edi, %rax
	imulq	%rcx, %rax
	movq	%rax, %rcx
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movl	%ecx, %eax
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %eax
.L1:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.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
.L23:
	.cfi_restore 3
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movslq	%edi, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %ecx
	jmp	.L4
	.cfi_endproc
.LFE63:
	.size	getk, .-getk
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB64:
	.cfi_startproc
	endbr64
	movl	%esi, %r8d
	xorl	%eax, %eax
	cmpl	%esi, %edi
	jl	.L28
	movslq	%edi, %rdx
	leaq	k(%rip), %rax
	subl	%r8d, %edi
	movslq	(%rax,%rdx,4), %rcx
	leaq	rk(%rip), %r9
	movslq	%esi, %rax
	movslq	%edi, %rdi
	movabsq	$155014655926305585, %rsi
	movslq	(%r9,%rax,4), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movslq	(%r9,%rdi,4), %rax
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movl	%ecx, %eax
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %eax
.L28:
	ret
	.cfi_endproc
.LFE64:
	.size	comb, .-comb
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB65:
	.cfi_startproc
	endbr64
	movl	%edi, %r9d
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	leaq	k(%rip), %rdi
	movl	$1, k(%rip)
	testl	%r9d, %r9d
	jle	.L32
	leal	1(%r9), %r10d
	movl	$1, %esi
	movl	$1, %eax
	movabsq	$155014655926305585, %r8
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	%eax, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, (%rdi,%rsi,4)
	addq	$1, %rsi
	movl	%ecx, %eax
	cmpq	%r10, %rsi
	jne	.L33
.L32:
	movslq	%r9d, %r8
	movl	$7798783, %esi
	movl	(%rdi,%r8,4), %r10d
	movl	%r10d, %edi
	call	getk
	movslq	%r10d, %rsi
	movabsq	$155014655926305585, %rdi
	movslq	%eax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$23, %rdx
	sarq	$63, %rax
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	movq	%rdx, %rcx
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movq	%rcx, %rax
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rax
	leaq	rk(%rip), %rdx
	movl	%eax, (%rdx,%r8,4)
	subl	$1, %r9d
	js	.L31
	movl	%r9d, %r9d
	movq	%r8, %rsi
	leaq	-1(%r8), %r8
	subq	%r9, %r8
	leaq	-4(%rdx), %r9
	.p2align 4,,10
	.p2align 3
.L35:
	movslq	%eax, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, (%r9,%rsi,4)
	subq	$1, %rsi
	movl	%ecx, %eax
	cmpq	%rsi, %r8
	jne	.L35
.L31:
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE65:
	.size	init, .-init
	.p2align 4
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB66:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L55
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L42:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L47
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L44:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %edx
	movl	%edx, %ecx
	subl	$48, %ecx
	cmpb	$9, %cl
	jbe	.L48
.L45:
	movq	%rax, %rcx
.L47:
	cmpq	%rsi, %rcx
	jb	.L44
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	leal	-48(%rdx), %ecx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpb	$9, %cl
	ja	.L45
	.p2align 4,,10
	.p2align 3
.L48:
	xorl	%r12d, %r12d
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L49:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L40
.L50:
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
.L52:
	leal	(%r12,%r12,4), %ecx
	movsbl	%dl, %edx
	leal	-48(%rdx,%rcx,2), %r12d
	cmpq	%rsi, %rax
	jb	.L49
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L40
	movq	stdin(%rip), %rdi
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L40:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	movq	%rcx, %rax
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L55:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L42
	.cfi_endproc
.LFE66:
	.size	nextpint, .-nextpint
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB67:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	nextpint
	movl	%eax, %ebx
	call	nextpint
	subl	$1, %ebx
	movl	%eax, %ebp
	call	nextpint
	movl	%ebx, %edi
	movl	%eax, %r11d
	call	init
	movl	%ebx, %esi
	leal	-1(%rbp), %r9d
	movl	%ebp, %ecx
	subl	%r11d, %esi
	je	.L57
	movabsq	$-8525806094425994177, %r8
	movl	%r9d, %r10d
	.p2align 4,,10
	.p2align 3
.L58:
	movq	%rcx, %rdi
	imulq	%r10, %rdi
	movq	%rdi, %rax
	mulq	%r8
	movq	%rdx, %rcx
	shrq	$29, %rcx
	imulq	$998244353, %rcx, %rax
	subq	%rax, %rdi
	movq	%rdi, %rcx
	subl	$1, %esi
	jne	.L58
.L57:
	xorl	%edi, %edi
	testl	%r11d, %r11d
	je	.L59
	leaq	k(%rip), %r13
	movslq	%ebx, %r12
	leaq	rk(%rip), %rbp
	movabsq	$155014655926305585, %r10
	movabsq	$-8525806094425994177, %r8
	.p2align 4,,10
	.p2align 3
.L61:
	cmpl	%r11d, %ebx
	jl	.L60
	movslq	%r11d, %rax
	movslq	0(%r13,%r12,4), %rsi
	movslq	0(%rbp,%rax,4), %rax
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movl	%ebx, %eax
	imulq	$998244353, %rdx, %rdx
	subl	%r11d, %eax
	cltq
	movslq	0(%rbp,%rax,4), %rax
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r10
	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
	mulq	%r8
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%rsi, %rdi
.L60:
	imulq	%r9, %rcx
	movq	%rcx, %rax
	movq	%rcx, %rsi
	mulq	%r8
	movq	%rdx, %rcx
	shrq	$29, %rcx
	imulq	$998244353, %rcx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rcx
	subl	$1, %r11d
	jne	.L61
.L59:
	addq	%rcx, %rdi
	leaq	.LC0(%rip), %rsi
	movabsq	$-8525806094425994177, %rdx
	movq	%rdi, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rdi
	xorl	%eax, %eax
	movq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE67:
	.size	main, .-main
	.globl	rk
	.bss
	.align 32
	.type	rk, @object
	.size	rk, 800000
rk:
	.zero	800000
	.globl	k
	.align 32
	.type	k, @object
	.size	k, 800000
k:
	.zero	800000
	.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	getk
	.type	getk, @function
getk:
.LFB63:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	cmpl	$1, %esi
	je	.L23
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%edi, %ecx
	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
	movl	%esi, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	shrl	$31, %r12d
	movl	%esi, %ebx
	addl	%esi, %r12d
	sarl	%r12d
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	cmpl	$1, %r12d
	je	.L3
	testl	%esi, %esi
	leal	3(%rsi), %r13d
	cmovns	%esi, %r13d
	sarl	$2, %r13d
	cmpl	$1, %r13d
	je	.L4
	testl	%esi, %esi
	leal	7(%rsi), %r14d
	cmovns	%esi, %r14d
	sarl	$3, %r14d
	cmpl	$1, %r14d
	je	.L5
	testl	%esi, %esi
	leal	15(%rsi), %r15d
	cmovns	%esi, %r15d
	sarl	$4, %r15d
	cmpl	$1, %r15d
	je	.L6
	testl	%ebx, %ebx
	leal	31(%rsi), %esi
	movl	%edi, 12(%rsp)
	cmovns	%ebx, %esi
	sarl	$5, %esi
	call	getk
	movl	12(%rsp), %edi
	movabsq	$155014655926305585, %rsi
	movslq	%eax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	andl	$1, %r15d
	movq	%rcx, %rdx
	je	.L6
	movslq	%edi, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subl	%eax, %ecx
.L6:
	movabsq	$155014655926305585, %rsi
	movslq	%ecx, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	andl	$1, %r14d
	movl	%edx, %ecx
	je	.L5
	movslq	%edi, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %ecx
.L5:
	movabsq	$155014655926305585, %rsi
	movslq	%ecx, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	andl	$1, %r13d
	movq	%rcx, %rdx
	jne	.L27
.L4:
	movabsq	$155014655926305585, %rsi
	movslq	%ecx, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	andl	$1, %r12d
	movl	%edx, %ecx
	je	.L3
	movslq	%edi, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %ecx
.L3:
	movabsq	$155014655926305585, %rsi
	movslq	%ecx, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	andl	$1, %ebx
	movl	%ecx, %eax
	je	.L1
	movslq	%edi, %rax
	imulq	%rcx, %rax
	movq	%rax, %rcx
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movl	%ecx, %eax
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %eax
.L1:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.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
.L23:
	.cfi_restore 3
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movslq	%edi, %rcx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %ecx
	jmp	.L4
	.cfi_endproc
.LFE63:
	.size	getk, .-getk
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB64:
	.cfi_startproc
	endbr64
	movl	%esi, %r8d
	xorl	%eax, %eax
	cmpl	%esi, %edi
	jl	.L28
	movslq	%edi, %rdx
	leaq	k(%rip), %rax
	subl	%r8d, %edi
	movslq	(%rax,%rdx,4), %rcx
	leaq	rk(%rip), %r9
	movslq	%esi, %rax
	movslq	%edi, %rdi
	movabsq	$155014655926305585, %rsi
	movslq	(%r9,%rax,4), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movslq	(%r9,%rdi,4), %rax
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movl	%ecx, %eax
	imulq	$998244353, %rdx, %rdx
	subl	%edx, %eax
.L28:
	ret
	.cfi_endproc
.LFE64:
	.size	comb, .-comb
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB65:
	.cfi_startproc
	endbr64
	movl	%edi, %r9d
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	leaq	k(%rip), %rdi
	movl	$1, k(%rip)
	testl	%r9d, %r9d
	jle	.L32
	leal	1(%r9), %r10d
	movl	$1, %esi
	movl	$1, %eax
	movabsq	$155014655926305585, %r8
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	%eax, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, (%rdi,%rsi,4)
	addq	$1, %rsi
	movl	%ecx, %eax
	cmpq	%r10, %rsi
	jne	.L33
.L32:
	movslq	%r9d, %r8
	movl	$7798783, %esi
	movl	(%rdi,%r8,4), %r10d
	movl	%r10d, %edi
	call	getk
	movslq	%r10d, %rsi
	movabsq	$155014655926305585, %rdi
	movslq	%eax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$23, %rdx
	sarq	$63, %rax
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	movq	%rdx, %rcx
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movq	%rcx, %rax
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rax
	leaq	rk(%rip), %rdx
	movl	%eax, (%rdx,%r8,4)
	subl	$1, %r9d
	js	.L31
	movl	%r9d, %r9d
	movq	%r8, %rsi
	leaq	-1(%r8), %r8
	subq	%r9, %r8
	leaq	-4(%rdx), %r9
	.p2align 4,,10
	.p2align 3
.L35:
	movslq	%eax, %rcx
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, (%r9,%rsi,4)
	subq	$1, %rsi
	movl	%ecx, %eax
	cmpq	%rsi, %r8
	jne	.L35
.L31:
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE65:
	.size	init, .-init
	.p2align 4
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB66:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L55
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L42:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L47
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L44:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %edx
	movl	%edx, %ecx
	subl	$48, %ecx
	cmpb	$9, %cl
	jbe	.L48
.L45:
	movq	%rax, %rcx
.L47:
	cmpq	%rsi, %rcx
	jb	.L44
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	leal	-48(%rdx), %ecx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpb	$9, %cl
	ja	.L45
	.p2align 4,,10
	.p2align 3
.L48:
	xorl	%r12d, %r12d
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L49:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L40
.L50:
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
.L52:
	leal	(%r12,%r12,4), %ecx
	movsbl	%dl, %edx
	leal	-48(%rdx,%rcx,2), %r12d
	cmpq	%rsi, %rax
	jb	.L49
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L40
	movq	stdin(%rip), %rdi
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L40:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	movq	%rcx, %rax
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L55:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L42
	.cfi_endproc
.LFE66:
	.size	nextpint, .-nextpint
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB67:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	nextpint
	movl	%eax, %ebx
	call	nextpint
	subl	$1, %ebx
	movl	%eax, %ebp
	call	nextpint
	movl	%ebx, %edi
	movl	%eax, %r11d
	call	init
	movl	%ebx, %esi
	leal	-1(%rbp), %r9d
	movl	%ebp, %ecx
	subl	%r11d, %esi
	je	.L57
	movabsq	$-8525806094425994177, %r8
	movl	%r9d, %r10d
	.p2align 4,,10
	.p2align 3
.L58:
	movq	%rcx, %rdi
	imulq	%r10, %rdi
	movq	%rdi, %rax
	mulq	%r8
	movq	%rdx, %rcx
	shrq	$29, %rcx
	imulq	$998244353, %rcx, %rax
	subq	%rax, %rdi
	movq	%rdi, %rcx
	subl	$1, %esi
	jne	.L58
.L57:
	xorl	%edi, %edi
	testl	%r11d, %r11d
	je	.L59
	leaq	k(%rip), %r13
	movslq	%ebx, %r12
	leaq	rk(%rip), %rbp
	movabsq	$155014655926305585, %r10
	movabsq	$-8525806094425994177, %r8
	.p2align 4,,10
	.p2align 3
.L61:
	cmpl	%r11d, %ebx
	jl	.L60
	movslq	%r11d, %rax
	movslq	0(%r13,%r12,4), %rsi
	movslq	0(%rbp,%rax,4), %rax
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$23, %rdx
	subq	%rax, %rdx
	movl	%ebx, %eax
	imulq	$998244353, %rdx, %rdx
	subl	%r11d, %eax
	cltq
	movslq	0(%rbp,%rax,4), %rax
	subq	%rdx, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r10
	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
	mulq	%r8
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%rsi, %rdi
.L60:
	imulq	%r9, %rcx
	movq	%rcx, %rax
	movq	%rcx, %rsi
	mulq	%r8
	movq	%rdx, %rcx
	shrq	$29, %rcx
	imulq	$998244353, %rcx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rcx
	subl	$1, %r11d
	jne	.L61
.L59:
	addq	%rcx, %rdi
	leaq	.LC0(%rip), %rsi
	movabsq	$-8525806094425994177, %rdx
	movq	%rdi, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$998244353, %rdx, %rax
	subq	%rax, %rdi
	xorl	%eax, %eax
	movq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE67:
	.size	main, .-main
	.globl	rk
	.bss
	.align 32
	.type	rk, @object
	.size	rk, 800000
rk:
	.zero	800000
	.globl	k
	.align 32
	.type	k, @object
	.size	k, 800000
k:
	.zero	800000
	.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 <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

#define P 998244353

int k[200000];
int rk[200000];

int getk(int a, int x){
	if(x==1) return a;
	int b = getk(a, x/2);
	b = ((long)b)*b%P;
	if((x&1)==0){
		return b;
	}else{
		return ((long)b)*a%P;
	}
}
 
int comb(int a, int b){
	if(a<b) return 0;
	return ((long)k[a])*rk[b]%P*rk[a-b]%P;
}

void init(int n){
	k[0]=1;
	for(int i=1; i<=n; i++){
		k[i]=k[i-1]*((long)i)%P;
	}	
	rk[n]=getk(k[n], P-2);
	for(int i=n-1; i>=0; i--){
		rk[i]=((long)rk[i+1])*(i+1)%P;
	}
}
uint32_t nextpint(void){ char c=getchar_unlocked(); while(c<'0'||'9'<c) c=getchar_unlocked(); uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return x; }

int main(void){
	uint32_t n=nextpint();
	uint32_t m=nextpint();
	uint32_t k=nextpint();
	init(n-1);
	uint64_t ans=0;
	uint64_t sh = m--;
	for(uint32_t i=n-k-1; i>0; i--) sh=sh*m%P;
	for(uint32_t i=k; i>0; i--){
		uint64_t now = sh * comb(n-1, i) % P;
		ans+=now;
		sh=sh*m%P;
	}
	ans+=sh;
	printf("%"PRIu64"\n", ans%P);
}

100 110 0
 6 2 1
 119754 114575 7559
 100 010 0
 12 2 1
 119754 114575 8988
 100 010 -1
 11 2 1
 145188 114575 8988
 11 3 1

701524751
 12
 612524154
 113759282
 24
 536128558
 366867031
 22
 964030371
 18432

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

```c
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif

#define P 998244353

int k[200000];
int rk[200000];

int getk(int a, int x){
	if(x==1) return a;
	int b = getk(a, x/2);
	b = ((long)b)*b%P;
	if((x&1)==0){
		return b;
	}else{
		return ((long)b)*a%P;
	}
}
 
int comb(int a, int b){
	if(a<b) return 0;
	return ((long)k[a])*rk[b]%P*rk[a-b]%P;
}

void init(int n){
	k[0]=1;
	for(int i=1; i<=n; i++){
		k[i]=k[i-1]*((long)i)%P;
	}	
	rk[n]=getk(k[n], P-2);
	for(int i=n-1; i>=0; i--){
		rk[i]=((long)rk[i+1])*(i+1)%P;
	}
}
uint32_t nextpint(void){ char c=getchar_unlocked(); while(c<'0'||'9'<c) c=getchar_unlocked(); uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return x; }

int main(void){
	uint32_t n=nextpint();
	uint32_t m=nextpint();
	uint32_t k=nextpint();
	init(n-1);
	uint64_t ans=0;
	uint64_t sh = m--;
	for(uint32_t i=n-k-1; i>0; i--) sh=sh*m%P;
	for(uint32_t i=k; i>0; i--){
		uint64_t now = sh * comb(n-1, i) % P;
		ans+=now;
		sh=sh*m%P;
	}
	ans+=sh;
	printf("%"PRIu64"\n", ans%P);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	k
	.bss
	.align 32
	.type	k, @object
	.size	k, 800000
k:
	.zero	800000
	.globl	rk
	.align 32
	.type	rk, @object
	.size	rk, 800000
rk:
	.zero	800000
	.text
	.globl	getk
	.type	getk, @function
getk:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$1, -24(%rbp)
	jne	.L2
	movl	-20(%rbp), %eax
	jmp	.L3
.L2:
	movl	-24(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	getk
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	-4(%rbp), %eax
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getk, .-getk
	.globl	comb
	.type	comb, @function
comb:
.LFB7:
	.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	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L6
	movl	$0, %eax
	jmp	.L7
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rk(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	-4(%rbp), %edx
	subl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	rk(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %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
.L7:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comb, .-comb
	.globl	init
	.type	init, @function
init:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	$1, k(%rip)
	movl	$1, -8(%rbp)
	jmp	.L9
.L10:
	movl	-8(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L9:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	$998244351, %esi
	movl	%eax, %edi
	call	getk
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	rk(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L11
.L12:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rk(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rk(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	subl	$1, -4(%rbp)
.L11:
	cmpl	$0, -4(%rbp)
	jns	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init, .-init
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L14
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L14:
	cmpb	$47, -5(%rbp)
	jle	.L15
	cmpb	$57, -5(%rbp)
	jg	.L15
	movl	$0, -4(%rbp)
	jmp	.L16
.L18:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L16:
	cmpb	$47, -5(%rbp)
	jle	.L17
	cmpb	$57, -5(%rbp)
	jle	.L18
.L17:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextpint, .-nextpint
	.section	.rodata
.LC0:
	.string	"%lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
	call	nextpint
	movl	%eax, -36(%rbp)
	call	nextpint
	movl	%eax, -32(%rbp)
	call	nextpint
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	init
	movq	$0, -24(%rbp)
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	movl	%eax, %eax
	movq	%rax, -16(%rbp)
	movl	-36(%rbp), %eax
	subl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L21
.L22:
	movl	-32(%rbp), %eax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	subl	$1, -44(%rbp)
.L21:
	cmpl	$0, -44(%rbp)
	jne	.L22
	movl	-28(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L23
.L24:
	movl	-40(%rbp), %eax
	movl	-36(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	comb
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	addq	%rax, -24(%rbp)
	movl	-32(%rbp), %eax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	subl	$1, -40(%rbp)
.L23:
	cmpl	$0, -40(%rbp)
	jne	.L24
	movq	-16(%rbp), %rax
	addq	%rax, -24(%rbp)
	movq	-24(%rbp), %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	k
	.bss
	.align 32
	.type	k, @object
	.size	k, 800000
k:
	.zero	800000
	.globl	rk
	.align 32
	.type	rk, @object
	.size	rk, 800000
rk:
	.zero	800000
	.text
	.globl	getk
	.type	getk, @function
getk:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$1, -24(%rbp)
	jne	.L2
	movl	-20(%rbp), %eax
	jmp	.L3
.L2:
	movl	-24(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	getk
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	-4(%rbp), %eax
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getk, .-getk
	.globl	comb
	.type	comb, @function
comb:
.LFB7:
	.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	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L6
	movl	$0, %eax
	jmp	.L7
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	rk(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	-4(%rbp), %edx
	subl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	rk(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movslq	%edx, %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
.L7:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comb, .-comb
	.globl	init
	.type	init, @function
init:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	$1, k(%rip)
	movl	$1, -8(%rbp)
	jmp	.L9
.L10:
	movl	-8(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movl	-8(%rbp), %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L9:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	k(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	$998244351, %esi
	movl	%eax, %edi
	call	getk
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	rk(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L11
.L12:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rk(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	%rdx, %rcx
	imulq	%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
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	rk(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	subl	$1, -4(%rbp)
.L11:
	cmpl	$0, -4(%rbp)
	jns	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init, .-init
	.globl	nextpint
	.type	nextpint, @function
nextpint:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L14
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L14:
	cmpb	$47, -5(%rbp)
	jle	.L15
	cmpb	$57, -5(%rbp)
	jg	.L15
	movl	$0, -4(%rbp)
	jmp	.L16
.L18:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-5(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L16:
	cmpb	$47, -5(%rbp)
	jle	.L17
	cmpb	$57, -5(%rbp)
	jle	.L18
.L17:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextpint, .-nextpint
	.section	.rodata
.LC0:
	.string	"%lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
	call	nextpint
	movl	%eax, -36(%rbp)
	call	nextpint
	movl	%eax, -32(%rbp)
	call	nextpint
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	init
	movq	$0, -24(%rbp)
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	movl	%eax, %eax
	movq	%rax, -16(%rbp)
	movl	-36(%rbp), %eax
	subl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -44(%rbp)
	jmp	.L21
.L22:
	movl	-32(%rbp), %eax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	subl	$1, -44(%rbp)
.L21:
	cmpl	$0, -44(%rbp)
	jne	.L22
	movl	-28(%rbp), %eax
	movl	%eax, -40(%rbp)
	jmp	.L23
.L24:
	movl	-40(%rbp), %eax
	movl	-36(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	comb
	cltq
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	addq	%rax, -24(%rbp)
	movl	-32(%rbp), %eax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	subl	$1, -40(%rbp)
.L23:
	cmpl	$0, -40(%rbp)
	jne	.L24
	movq	-16(%rbp), %rax
	addq	%rax, -24(%rbp)
	movq	-24(%rbp), %rcx
	movabsq	$-8525806094425994177, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$998244353, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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:
