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 getchar getchar_unlocked
#define putchar putchar_unlocked
int32_t nextint(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); bool s=false; if(c=='-'){s=true;c=getchar_unlocked();} uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
int64_t nextlong(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); int s=0; if(c=='-'){s=1;c=getchar_unlocked();} uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
uint32_t nextstr(char *s){ char c=getchar_unlocked(); while(c==' '||c=='\n') c=getchar_unlocked(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar_unlocked(); } *s='\0'; return len; }

int edge[99999][2];

int qmem[199998];

int n;

int *e[100000];
int el[100000];

int p[100000];

int f(int now, int from, int k){
	if(now==n-1) return 1;
	if(el[now]==1 && e[now][0]==from) return 0;
	for(int i=0; i<el[now]; i++){
		int to=e[now][i];
		if(to!=from){
			int v=f(to, now, k+1);
			if(v>0){
				if(v>=k){
					p[now]=1;
				}else{
					p[now]=2;
				}
				return v+1;
			}
		}
	}
	return 0;
}

void g(int now, int from, int x){
	if(el[now]==1 && e[now][0]==from) return;
	for(int i=0; i<el[now]; i++){
		int to=e[now][i];
		if(to!=from){
			if(p[to]==0){
				p[to]=x;
				g(to, now, x);
			}else{
				g(to, now, p[to]);
			}
		}
	}
}

int main(void){
	n=nextint();
	for(int i=0; i<n-1; i++){
		int A=nextint()-1;
		int B=nextint()-1;
		edge[i][0]=A;
		edge[i][1]=B;
		el[A]++;
		el[B]++;
	}
	int ne=0;
	for(int i=0; i<n; i++){
		e[i]=&qmem[ne];
		ne+=el[i];
		el[i]=0;
	}
	for(int i=0; i<n-1; i++){
		int A=edge[i][0];
		int B=edge[i][1];
		e[A][el[A]++]=B;
		e[B][el[B]++]=A;
	}
	f(0, -1, 0);
	p[n-1]=2;
	g(0, -1, 1);
	//for(int i=0; i<n; i++){ printf("%d ", p[i]); } putchar(10);
	int a=0;
	for(int i=0; i<n; i++){
		if(p[i]==1) a++; else a--;
	}
	puts(a>0?"Fennec":"Snuke");
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	nextint
	.type	nextint, @function
nextint:
.LFB6:
	.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, -6(%rbp)
	jmp	.L2
.L4:
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L2:
	cmpb	$45, -6(%rbp)
	je	.L3
	cmpb	$47, -6(%rbp)
	jle	.L4
	cmpb	$57, -6(%rbp)
	jg	.L4
.L3:
	movb	$0, -5(%rbp)
	cmpb	$45, -6(%rbp)
	jne	.L5
	movb	$1, -5(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L5:
	movl	$0, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-6(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L6:
	cmpb	$47, -6(%rbp)
	jle	.L7
	cmpb	$57, -6(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -5(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextint, .-nextint
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB7:
	.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, -13(%rbp)
	jmp	.L13
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L13:
	cmpb	$45, -13(%rbp)
	je	.L14
	cmpb	$47, -13(%rbp)
	jle	.L15
	cmpb	$57, -13(%rbp)
	jg	.L15
.L14:
	movl	$0, -12(%rbp)
	cmpb	$45, -13(%rbp)
	jne	.L16
	movl	$1, -12(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L16:
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-13(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L17:
	cmpb	$47, -13(%rbp)
	jle	.L18
	cmpb	$57, -13(%rbp)
	jle	.L19
.L18:
	cmpl	$0, -12(%rbp)
	je	.L20
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L22
.L20:
	movq	-8(%rbp), %rax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextlong, .-nextlong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.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
	movq	%rdi, -24(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L24
.L25:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	je	.L25
	movl	$0, -4(%rbp)
	jmp	.L26
.L28:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L26:
	cmpb	$32, -5(%rbp)
	je	.L27
	cmpb	$10, -5(%rbp)
	jne	.L28
.L27:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextstr, .-nextstr
	.globl	edge
	.bss
	.align 32
	.type	edge, @object
	.size	edge, 799992
edge:
	.zero	799992
	.globl	qmem
	.align 32
	.type	qmem, @object
	.size	qmem, 799992
qmem:
	.zero	799992
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	e
	.align 32
	.type	e, @object
	.size	e, 800000
e:
	.zero	800000
	.globl	el
	.align 32
	.type	el, @object
	.size	el, 400000
el:
	.zero	400000
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400000
p:
	.zero	400000
	.text
	.globl	f
	.type	f, @function
f:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -20(%rbp)
	jne	.L31
	movl	$1, %eax
	jmp	.L32
.L31:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L33
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -24(%rbp)
	jne	.L33
	movl	$0, %eax
	jmp	.L32
.L33:
	movl	$0, -12(%rbp)
	jmp	.L34
.L38:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L35
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %ecx
	movl	-8(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	f
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jle	.L35
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L36
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$1, (%rdx,%rax)
	jmp	.L37
.L36:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$2, (%rdx,%rax)
.L37:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	jmp	.L32
.L35:
	addl	$1, -12(%rbp)
.L34:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L38
	movl	$0, %eax
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	f, .-f
	.globl	g
	.type	g, @function
g:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L40
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -24(%rbp)
	je	.L46
.L40:
	movl	$0, -8(%rbp)
	jmp	.L42
.L45:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L43
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L44
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-28(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	-4(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	g
	jmp	.L43
.L44:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %ecx
	movl	-4(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	g
.L43:
	addl	$1, -8(%rbp)
.L42:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L45
	jmp	.L39
.L46:
	nop
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	g, .-g
	.section	.rodata
.LC0:
	.string	"Fennec"
.LC1:
	.string	"Snuke"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	nextint
	movl	%eax, n(%rip)
	movl	$0, -40(%rbp)
	jmp	.L48
.L49:
	call	nextint
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	call	nextint
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	edge(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+edge(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L48:
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -40(%rbp)
	jl	.L49
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L50
.L51:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	qmem(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, -36(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L50:
	movl	n(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L51
	movl	$0, -28(%rbp)
	jmp	.L52
.L53:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+edge(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-16(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	el(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-12(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	el(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -28(%rbp)
.L52:
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -28(%rbp)
	jl	.L53
	movl	$0, %edx
	movl	$-1, %esi
	movl	$0, %edi
	call	f
	movl	n(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$2, (%rdx,%rax)
	movl	$1, %edx
	movl	$-1, %esi
	movl	$0, %edi
	call	g
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L54
.L57:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L55
	addl	$1, -24(%rbp)
	jmp	.L56
.L55:
	subl	$1, -24(%rbp)
.L56:
	addl	$1, -20(%rbp)
.L54:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L57
	cmpl	$0, -24(%rbp)
	jle	.L58
	leaq	.LC0(%rip), %rax
	jmp	.L59
.L58:
	leaq	.LC1(%rip), %rax
.L59:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	nextint
	.type	nextint, @function
nextint:
.LFB63:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L44
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L3:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L41:
	movq	stdin(%rip), %rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L8:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L5
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L4
	cmpb	$45, %al
	jne	.L41
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$45, %dl
	je	.L9
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L22
.L10:
	xorl	%ebx, %ebx
.L42:
	movq	stdin(%rip), %rdi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L17
.L18:
	leal	(%rbx,%rbx,4), %eax
	movsbl	%dl, %edx
	leal	(%rdx,%rax,2), %ebp
	movq	8(%rdi), %rax
	leal	-48(%rbp), %ebx
	cmpq	16(%rdi), %rax
	jb	.L15
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L42
.L17:
	movl	$48, %eax
	subl	%ebp, %eax
	testb	%r12b, %r12b
	cmove	%ebx, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L45
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L13:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L22
	movl	$1, %r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L3
.L45:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L13
	.cfi_endproc
.LFE63:
	.size	nextint, .-nextint
	.p2align 4
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB64:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L88
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L48:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L86:
	movq	stdin(%rip), %rdi
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L53:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L50
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L49
	cmpb	$45, %al
	jne	.L86
	.p2align 4,,10
	.p2align 3
.L49:
	cmpb	$45, %dl
	je	.L54
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L67
.L55:
	xorl	%ebx, %ebx
.L87:
	movq	stdin(%rip), %rdi
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L62
.L63:
	leaq	(%rbx,%rbx,4), %rax
	movsbq	%dl, %rdx
	leaq	(%rdx,%rax,2), %rbp
	movq	8(%rdi), %rax
	leaq	-48(%rbp), %rbx
	cmpq	16(%rdi), %rax
	jb	.L60
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L87
.L62:
	movl	$48, %eax
	subq	%rbp, %rax
	testl	%r12d, %r12d
	cmove	%rbx, %rax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L89
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L58:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L67
	movl	$1, %r12d
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L67:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L88:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L48
.L89:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L58
	.cfi_endproc
.LFE64:
	.size	nextlong, .-nextlong
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB65:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L122:
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L94
	cmpb	$32, %al
	jne	.L93
.L94:
	movq	stdin(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L98:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L98
	cmpb	$10, %dl
	je	.L98
.L93:
	xorl	%r12d, %r12d
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L99:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L102
	cmpb	$10, %dl
	je	.L102
.L104:
	movb	%dl, (%rbx)
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	addl	$1, %r12d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L99
	call	__uflow@PLT
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L102
	cmpb	$32, %al
	jne	.L104
.L102:
	movb	$0, (%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L123:
	.cfi_restore_state
	call	__uflow@PLT
	jmp	.L122
	.cfi_endproc
.LFE65:
	.size	nextstr, .-nextstr
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB66:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edx, %r14d
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	n(%rip), %eax
	leal	-1(%rax), %edx
	movl	$1, %eax
	cmpl	%edi, %edx
	je	.L124
	leaq	el(%rip), %rcx
	movslq	%edi, %r15
	movl	%edi, %r12d
	movl	%esi, %ebp
	movl	(%rcx,%r15,4), %eax
	cmpl	$1, %eax
	je	.L126
	testl	%eax, %eax
	jle	.L129
	leaq	e(%rip), %rdx
	movq	(%rdx,%r15,8), %r13
.L128:
	xorl	%ebx, %ebx
	leal	1(%r14), %edx
	.p2align 4,,10
	.p2align 3
.L133:
	movl	0(%r13,%rbx,4), %edi
	cmpl	%edi, %ebp
	je	.L130
	movl	%r12d, %esi
	movl	%edx, 12(%rsp)
	call	f
	testl	%eax, %eax
	jg	.L131
	leaq	el(%rip), %rcx
	movl	12(%rsp), %edx
	movl	(%rcx,%r15,4), %eax
.L130:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L133
.L129:
	xorl	%eax, %eax
.L124:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L126:
	.cfi_restore_state
	leaq	e(%rip), %rdx
	movq	(%rdx,%r15,8), %r13
	cmpl	%esi, 0(%r13)
	jne	.L128
	jmp	.L129
	.p2align 4,,10
	.p2align 3
.L131:
	xorl	%edx, %edx
	cmpl	%eax, %r14d
	leaq	p(%rip), %rcx
	setg	%dl
	addl	$1, %eax
	addl	$1, %edx
	movl	%edx, (%rcx,%r15,4)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE66:
	.size	f, .-f
	.p2align 4
	.globl	g
	.type	g, @function
g:
.LFB67:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	el(%rip), %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movslq	%edi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r14, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%r8,%r14,4), %eax
	movl	%edx, 12(%rsp)
	cmpl	$1, %eax
	je	.L139
	testl	%eax, %eax
	jle	.L138
	leaq	e(%rip), %rdx
	movq	(%rdx,%r14,8), %r15
.L141:
	xorl	%ebx, %ebx
	leaq	p(%rip), %r13
.L145:
	movl	(%r15,%rbx,4), %edi
	cmpl	%edi, %ebp
	je	.L143
	movslq	%edi, %rax
	movl	0(%r13,%rax,4), %edx
	testl	%edx, %edx
	jne	.L144
	movl	12(%rsp), %ecx
	movl	%r12d, %esi
	movl	%ecx, %edx
	movl	%ecx, 0(%r13,%rax,4)
	call	g
	leaq	el(%rip), %r8
	movl	(%r8,%r14,4), %eax
.L143:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L145
.L138:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L144:
	.cfi_restore_state
	movl	%r12d, %esi
	call	g
	leaq	el(%rip), %r8
	movl	(%r8,%r14,4), %eax
	jmp	.L143
	.p2align 4,,10
	.p2align 3
.L139:
	leaq	e(%rip), %rdx
	movq	(%rdx,%r14,8), %r15
	cmpl	%esi, (%r15)
	jne	.L141
	jmp	.L138
	.cfi_endproc
.LFE67:
	.size	g, .-g
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Fennec"
.LC1:
	.string	"Snuke"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB68:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	nextint
	movl	%eax, n(%rip)
	cmpl	$1, %eax
	jle	.L149
	leaq	edge(%rip), %r13
	xorl	%r12d, %r12d
	leaq	el(%rip), %rbx
	leaq	4(%r13), %r14
	.p2align 4,,10
	.p2align 3
.L150:
	call	nextint
	leal	-1(%rax), %ebp
	call	nextint
	movl	n(%rip), %edx
	movl	%ebp, 0(%r13,%r12,8)
	movslq	%ebp, %rbp
	subl	$1, %eax
	addl	$1, (%rbx,%rbp,4)
	movl	%eax, (%r14,%r12,8)
	cltq
	addq	$1, %r12
	addl	$1, (%rbx,%rax,4)
	leal	-1(%rdx), %eax
	cmpl	%r12d, %eax
	jg	.L150
	testl	%edx, %edx
	jle	.L151
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	e(%rip), %rdi
	leaq	qmem(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L152:
	movslq	%ecx, %rsi
	addl	(%rbx,%rax,4), %ecx
	movl	$0, (%rbx,%rax,4)
	leaq	(%r8,%rsi,4), %rsi
	movq	%rsi, (%rdi,%rax,8)
	addq	$1, %rax
	cmpl	%eax, %edx
	jg	.L152
	cmpl	$1, %edx
	jle	.L151
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L153:
	movslq	0(%r13,%rdx,8), %rsi
	movslq	(%r14,%rdx,8), %rax
	addq	$1, %rdx
	movslq	(%rbx,%rsi,4), %rcx
	movq	(%rdi,%rsi,8), %r9
	movq	%rsi, %r8
	leal	1(%rcx), %r10d
	movl	%r10d, (%rbx,%rsi,4)
	movq	(%rdi,%rax,8), %rsi
	movl	%eax, (%r9,%rcx,4)
	movslq	(%rbx,%rax,4), %rcx
	leal	1(%rcx), %r9d
	movl	%r9d, (%rbx,%rax,4)
	movl	%r8d, (%rsi,%rcx,4)
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%edx, %eax
	jg	.L153
.L151:
	xorl	%edx, %edx
	movl	$-1, %esi
	leaq	p(%rip), %r9
	xorl	%edi, %edi
	call	f
	movl	n(%rip), %eax
	xorl	%edi, %edi
	movl	$1, %edx
	movl	$-1, %esi
	subl	$1, %eax
	cltq
	movl	$2, (%r9,%rax,4)
	call	g
	movl	n(%rip), %eax
	leaq	.LC1(%rip), %rdi
	testl	%eax, %eax
	jle	.L155
	leal	-1(%rax), %ecx
	leaq	4(%r9), %rax
	movq	%r9, %rdx
	leaq	(%rax,%rcx,4), %rsi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L158:
	leal	1(%rax), %ecx
	subl	$1, %eax
	cmpl	$1, (%rdx)
	cmove	%ecx, %eax
	addq	$4, %rdx
	cmpq	%rsi, %rdx
	jne	.L158
	testl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rax
	cmovg	%rax, %rdi
.L155:
	call	puts@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L149:
	.cfi_restore_state
	jne	.L151
	leaq	qmem(%rip), %rax
	movl	$0, el(%rip)
	movq	%rax, e(%rip)
	jmp	.L151
	.cfi_endproc
.LFE68:
	.size	main, .-main
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 400000
p:
	.zero	400000
	.globl	el
	.align 32
	.type	el, @object
	.size	el, 400000
el:
	.zero	400000
	.globl	e
	.align 32
	.type	e, @object
	.size	e, 800000
e:
	.zero	800000
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	qmem
	.align 32
	.type	qmem, @object
	.size	qmem, 799992
qmem:
	.zero	799992
	.globl	edge
	.align 32
	.type	edge, @object
	.size	edge, 799992
edge:
	.zero	799992
	.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	nextint
	.type	nextint, @function
nextint:
.LFB63:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L44
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L3:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L41:
	movq	stdin(%rip), %rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L8:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L5
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L4
	cmpb	$45, %al
	jne	.L41
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$45, %dl
	je	.L9
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L22
.L10:
	xorl	%ebx, %ebx
.L42:
	movq	stdin(%rip), %rdi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L17
.L18:
	leal	(%rbx,%rbx,4), %eax
	movsbl	%dl, %edx
	leal	(%rdx,%rax,2), %ebp
	movq	8(%rdi), %rax
	leal	-48(%rbp), %ebx
	cmpq	16(%rdi), %rax
	jb	.L15
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L42
.L17:
	movl	$48, %eax
	subl	%ebp, %eax
	testb	%r12b, %r12b
	cmove	%ebx, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L45
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L13:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L22
	movl	$1, %r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L3
.L45:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L13
	.cfi_endproc
.LFE63:
	.size	nextint, .-nextint
	.p2align 4
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB64:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L88
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L48:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L86:
	movq	stdin(%rip), %rdi
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L53:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L50
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L49
	cmpb	$45, %al
	jne	.L86
	.p2align 4,,10
	.p2align 3
.L49:
	cmpb	$45, %dl
	je	.L54
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L67
.L55:
	xorl	%ebx, %ebx
.L87:
	movq	stdin(%rip), %rdi
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L62
.L63:
	leaq	(%rbx,%rbx,4), %rax
	movsbq	%dl, %rdx
	leaq	(%rdx,%rax,2), %rbp
	movq	8(%rdi), %rax
	leaq	-48(%rbp), %rbx
	cmpq	16(%rdi), %rax
	jb	.L60
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L87
.L62:
	movl	$48, %eax
	subq	%rbp, %rax
	testl	%r12d, %r12d
	cmove	%rbx, %rax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L89
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L58:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L67
	movl	$1, %r12d
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L67:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L88:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L48
.L89:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L58
	.cfi_endproc
.LFE64:
	.size	nextlong, .-nextlong
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB65:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L122:
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L94
	cmpb	$32, %al
	jne	.L93
.L94:
	movq	stdin(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L98:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L98
	cmpb	$10, %dl
	je	.L98
.L93:
	xorl	%r12d, %r12d
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L99:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L102
	cmpb	$10, %dl
	je	.L102
.L104:
	movb	%dl, (%rbx)
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	addl	$1, %r12d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L99
	call	__uflow@PLT
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L102
	cmpb	$32, %al
	jne	.L104
.L102:
	movb	$0, (%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L123:
	.cfi_restore_state
	call	__uflow@PLT
	jmp	.L122
	.cfi_endproc
.LFE65:
	.size	nextstr, .-nextstr
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB66:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edx, %r14d
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	n(%rip), %eax
	leal	-1(%rax), %edx
	movl	$1, %eax
	cmpl	%edi, %edx
	je	.L124
	leaq	el(%rip), %rcx
	movslq	%edi, %r15
	movl	%edi, %r12d
	movl	%esi, %ebp
	movl	(%rcx,%r15,4), %eax
	cmpl	$1, %eax
	je	.L126
	testl	%eax, %eax
	jle	.L129
	leaq	e(%rip), %rdx
	movq	(%rdx,%r15,8), %r13
.L128:
	xorl	%ebx, %ebx
	leal	1(%r14), %edx
	.p2align 4,,10
	.p2align 3
.L133:
	movl	0(%r13,%rbx,4), %edi
	cmpl	%edi, %ebp
	je	.L130
	movl	%r12d, %esi
	movl	%edx, 12(%rsp)
	call	f
	testl	%eax, %eax
	jg	.L131
	leaq	el(%rip), %rcx
	movl	12(%rsp), %edx
	movl	(%rcx,%r15,4), %eax
.L130:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L133
.L129:
	xorl	%eax, %eax
.L124:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L126:
	.cfi_restore_state
	leaq	e(%rip), %rdx
	movq	(%rdx,%r15,8), %r13
	cmpl	%esi, 0(%r13)
	jne	.L128
	jmp	.L129
	.p2align 4,,10
	.p2align 3
.L131:
	xorl	%edx, %edx
	cmpl	%eax, %r14d
	leaq	p(%rip), %rcx
	setg	%dl
	addl	$1, %eax
	addl	$1, %edx
	movl	%edx, (%rcx,%r15,4)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE66:
	.size	f, .-f
	.p2align 4
	.globl	g
	.type	g, @function
g:
.LFB67:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	el(%rip), %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movslq	%edi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r14, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%r8,%r14,4), %eax
	movl	%edx, 12(%rsp)
	cmpl	$1, %eax
	je	.L139
	testl	%eax, %eax
	jle	.L138
	leaq	e(%rip), %rdx
	movq	(%rdx,%r14,8), %r15
.L141:
	xorl	%ebx, %ebx
	leaq	p(%rip), %r13
.L145:
	movl	(%r15,%rbx,4), %edi
	cmpl	%edi, %ebp
	je	.L143
	movslq	%edi, %rax
	movl	0(%r13,%rax,4), %edx
	testl	%edx, %edx
	jne	.L144
	movl	12(%rsp), %ecx
	movl	%r12d, %esi
	movl	%ecx, %edx
	movl	%ecx, 0(%r13,%rax,4)
	call	g
	leaq	el(%rip), %r8
	movl	(%r8,%r14,4), %eax
.L143:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L145
.L138:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L144:
	.cfi_restore_state
	movl	%r12d, %esi
	call	g
	leaq	el(%rip), %r8
	movl	(%r8,%r14,4), %eax
	jmp	.L143
	.p2align 4,,10
	.p2align 3
.L139:
	leaq	e(%rip), %rdx
	movq	(%rdx,%r14,8), %r15
	cmpl	%esi, (%r15)
	jne	.L141
	jmp	.L138
	.cfi_endproc
.LFE67:
	.size	g, .-g
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Fennec"
.LC1:
	.string	"Snuke"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB68:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	nextint
	movl	%eax, n(%rip)
	cmpl	$1, %eax
	jle	.L149
	leaq	edge(%rip), %r13
	xorl	%r12d, %r12d
	leaq	el(%rip), %rbx
	leaq	4(%r13), %r14
	.p2align 4,,10
	.p2align 3
.L150:
	call	nextint
	leal	-1(%rax), %ebp
	call	nextint
	movl	n(%rip), %edx
	movl	%ebp, 0(%r13,%r12,8)
	movslq	%ebp, %rbp
	subl	$1, %eax
	addl	$1, (%rbx,%rbp,4)
	movl	%eax, (%r14,%r12,8)
	cltq
	addq	$1, %r12
	addl	$1, (%rbx,%rax,4)
	leal	-1(%rdx), %eax
	cmpl	%r12d, %eax
	jg	.L150
	testl	%edx, %edx
	jle	.L151
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	e(%rip), %rdi
	leaq	qmem(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L152:
	movslq	%ecx, %rsi
	addl	(%rbx,%rax,4), %ecx
	movl	$0, (%rbx,%rax,4)
	leaq	(%r8,%rsi,4), %rsi
	movq	%rsi, (%rdi,%rax,8)
	addq	$1, %rax
	cmpl	%eax, %edx
	jg	.L152
	cmpl	$1, %edx
	jle	.L151
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L153:
	movslq	0(%r13,%rdx,8), %rsi
	movslq	(%r14,%rdx,8), %rax
	addq	$1, %rdx
	movslq	(%rbx,%rsi,4), %rcx
	movq	(%rdi,%rsi,8), %r9
	movq	%rsi, %r8
	leal	1(%rcx), %r10d
	movl	%r10d, (%rbx,%rsi,4)
	movq	(%rdi,%rax,8), %rsi
	movl	%eax, (%r9,%rcx,4)
	movslq	(%rbx,%rax,4), %rcx
	leal	1(%rcx), %r9d
	movl	%r9d, (%rbx,%rax,4)
	movl	%r8d, (%rsi,%rcx,4)
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%edx, %eax
	jg	.L153
.L151:
	xorl	%edx, %edx
	movl	$-1, %esi
	leaq	p(%rip), %r9
	xorl	%edi, %edi
	call	f
	movl	n(%rip), %eax
	xorl	%edi, %edi
	movl	$1, %edx
	movl	$-1, %esi
	subl	$1, %eax
	cltq
	movl	$2, (%r9,%rax,4)
	call	g
	movl	n(%rip), %eax
	leaq	.LC1(%rip), %rdi
	testl	%eax, %eax
	jle	.L155
	leal	-1(%rax), %ecx
	leaq	4(%r9), %rax
	movq	%r9, %rdx
	leaq	(%rax,%rcx,4), %rsi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L158:
	leal	1(%rax), %ecx
	subl	$1, %eax
	cmpl	$1, (%rdx)
	cmove	%ecx, %eax
	addq	$4, %rdx
	cmpq	%rsi, %rdx
	jne	.L158
	testl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rax
	cmovg	%rax, %rdi
.L155:
	call	puts@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L149:
	.cfi_restore_state
	jne	.L151
	leaq	qmem(%rip), %rax
	movl	$0, el(%rip)
	movq	%rax, e(%rip)
	jmp	.L151
	.cfi_endproc
.LFE68:
	.size	main, .-main
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 400000
p:
	.zero	400000
	.globl	el
	.align 32
	.type	el, @object
	.size	el, 400000
el:
	.zero	400000
	.globl	e
	.align 32
	.type	e, @object
	.size	e, 800000
e:
	.zero	800000
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	qmem
	.align 32
	.type	qmem, @object
	.size	qmem, 799992
qmem:
	.zero	799992
	.globl	edge
	.align 32
	.type	edge, @object
	.size	edge, 799992
edge:
	.zero	799992
	.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 getchar getchar_unlocked
#define putchar putchar_unlocked
int32_t nextint(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); bool s=false; if(c=='-'){s=true;c=getchar_unlocked();} uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
int64_t nextlong(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); int s=0; if(c=='-'){s=1;c=getchar_unlocked();} uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
uint32_t nextstr(char *s){ char c=getchar_unlocked(); while(c==' '||c=='\n') c=getchar_unlocked(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar_unlocked(); } *s='\0'; return len; }

int edge[99999][2];

int qmem[199998];

int n;

int *e[100000];
int el[100000];

int p[100000];

int f(int now, int from, int k){
	if(now==n-1) return 1;
	if(el[now]==1 && e[now][0]==from) return 0;
	for(int i=0; i<el[now]; i++){
		int to=e[now][i];
		if(to!=from){
			int v=f(to, now, k+1);
			if(v>0){
				if(v>=k){
					p[now]=1;
				}else{
					p[now]=2;
				}
				return v+1;
			}
		}
	}
	return 0;
}

void g(int now, int from, int x){
	if(el[now]==1 && e[now][0]==from) return;
	for(int i=0; i<el[now]; i++){
		int to=e[now][i];
		if(to!=from){
			if(p[to]==0){
				p[to]=x;
				g(to, now, x);
			}else{
				g(to, now, p[to]);
			}
		}
	}
}

int main(void){
	n=nextint();
	for(int i=0; i<n-1; i++){
		int A=nextint()-1;
		int B=nextint()-1;
		edge[i][0]=A;
		edge[i][1]=B;
		el[A]++;
		el[B]++;
	}
	int ne=0;
	for(int i=0; i<n; i++){
		e[i]=&qmem[ne];
		ne+=el[i];
		el[i]=0;
	}
	for(int i=0; i<n-1; i++){
		int A=edge[i][0];
		int B=edge[i][1];
		e[A][el[A]++]=B;
		e[B][el[B]++]=A;
	}
	f(0, -1, 0);
	p[n-1]=2;
	g(0, -1, 1);
	//for(int i=0; i<n; i++){ printf("%d ", p[i]); } putchar(10);
	int a=0;
	for(int i=0; i<n; i++){
		if(p[i]==1) a++; else a--;
	}
	puts(a>0?"Fennec":"Snuke");
}

7
3 6
1 2
3 1
7 4
5 7
1 4

Fennec

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 getchar getchar_unlocked
#define putchar putchar_unlocked
int32_t nextint(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); bool s=false; if(c=='-'){s=true;c=getchar_unlocked();} uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
int64_t nextlong(void){ char c=getchar_unlocked(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar_unlocked(); int s=0; if(c=='-'){s=1;c=getchar_unlocked();} uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar_unlocked(); } return s?-x:x; }
uint32_t nextstr(char *s){ char c=getchar_unlocked(); while(c==' '||c=='\n') c=getchar_unlocked(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar_unlocked(); } *s='\0'; return len; }

int edge[99999][2];

int qmem[199998];

int n;

int *e[100000];
int el[100000];

int p[100000];

int f(int now, int from, int k){
	if(now==n-1) return 1;
	if(el[now]==1 && e[now][0]==from) return 0;
	for(int i=0; i<el[now]; i++){
		int to=e[now][i];
		if(to!=from){
			int v=f(to, now, k+1);
			if(v>0){
				if(v>=k){
					p[now]=1;
				}else{
					p[now]=2;
				}
				return v+1;
			}
		}
	}
	return 0;
}

void g(int now, int from, int x){
	if(el[now]==1 && e[now][0]==from) return;
	for(int i=0; i<el[now]; i++){
		int to=e[now][i];
		if(to!=from){
			if(p[to]==0){
				p[to]=x;
				g(to, now, x);
			}else{
				g(to, now, p[to]);
			}
		}
	}
}

int main(void){
	n=nextint();
	for(int i=0; i<n-1; i++){
		int A=nextint()-1;
		int B=nextint()-1;
		edge[i][0]=A;
		edge[i][1]=B;
		el[A]++;
		el[B]++;
	}
	int ne=0;
	for(int i=0; i<n; i++){
		e[i]=&qmem[ne];
		ne+=el[i];
		el[i]=0;
	}
	for(int i=0; i<n-1; i++){
		int A=edge[i][0];
		int B=edge[i][1];
		e[A][el[A]++]=B;
		e[B][el[B]++]=A;
	}
	f(0, -1, 0);
	p[n-1]=2;
	g(0, -1, 1);
	//for(int i=0; i<n; i++){ printf("%d ", p[i]); } putchar(10);
	int a=0;
	for(int i=0; i<n; i++){
		if(p[i]==1) a++; else a--;
	}
	puts(a>0?"Fennec":"Snuke");
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	nextint
	.type	nextint, @function
nextint:
.LFB6:
	.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, -6(%rbp)
	jmp	.L2
.L4:
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L2:
	cmpb	$45, -6(%rbp)
	je	.L3
	cmpb	$47, -6(%rbp)
	jle	.L4
	cmpb	$57, -6(%rbp)
	jg	.L4
.L3:
	movb	$0, -5(%rbp)
	cmpb	$45, -6(%rbp)
	jne	.L5
	movb	$1, -5(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L5:
	movl	$0, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-6(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L6:
	cmpb	$47, -6(%rbp)
	jle	.L7
	cmpb	$57, -6(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -5(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextint, .-nextint
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB7:
	.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, -13(%rbp)
	jmp	.L13
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L13:
	cmpb	$45, -13(%rbp)
	je	.L14
	cmpb	$47, -13(%rbp)
	jle	.L15
	cmpb	$57, -13(%rbp)
	jg	.L15
.L14:
	movl	$0, -12(%rbp)
	cmpb	$45, -13(%rbp)
	jne	.L16
	movl	$1, -12(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L16:
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-13(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L17:
	cmpb	$47, -13(%rbp)
	jle	.L18
	cmpb	$57, -13(%rbp)
	jle	.L19
.L18:
	cmpl	$0, -12(%rbp)
	je	.L20
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L22
.L20:
	movq	-8(%rbp), %rax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextlong, .-nextlong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.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
	movq	%rdi, -24(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L24
.L25:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	je	.L25
	movl	$0, -4(%rbp)
	jmp	.L26
.L28:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L26:
	cmpb	$32, -5(%rbp)
	je	.L27
	cmpb	$10, -5(%rbp)
	jne	.L28
.L27:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextstr, .-nextstr
	.globl	edge
	.bss
	.align 32
	.type	edge, @object
	.size	edge, 799992
edge:
	.zero	799992
	.globl	qmem
	.align 32
	.type	qmem, @object
	.size	qmem, 799992
qmem:
	.zero	799992
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	e
	.align 32
	.type	e, @object
	.size	e, 800000
e:
	.zero	800000
	.globl	el
	.align 32
	.type	el, @object
	.size	el, 400000
el:
	.zero	400000
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400000
p:
	.zero	400000
	.text
	.globl	f
	.type	f, @function
f:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -20(%rbp)
	jne	.L31
	movl	$1, %eax
	jmp	.L32
.L31:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L33
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -24(%rbp)
	jne	.L33
	movl	$0, %eax
	jmp	.L32
.L33:
	movl	$0, -12(%rbp)
	jmp	.L34
.L38:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L35
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %ecx
	movl	-8(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	f
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jle	.L35
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L36
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$1, (%rdx,%rax)
	jmp	.L37
.L36:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$2, (%rdx,%rax)
.L37:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	jmp	.L32
.L35:
	addl	$1, -12(%rbp)
.L34:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L38
	movl	$0, %eax
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	f, .-f
	.globl	g
	.type	g, @function
g:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L40
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -24(%rbp)
	je	.L46
.L40:
	movl	$0, -8(%rbp)
	jmp	.L42
.L45:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L43
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L44
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-28(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	-4(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	g
	jmp	.L43
.L44:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %ecx
	movl	-4(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	g
.L43:
	addl	$1, -8(%rbp)
.L42:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L45
	jmp	.L39
.L46:
	nop
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	g, .-g
	.section	.rodata
.LC0:
	.string	"Fennec"
.LC1:
	.string	"Snuke"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	nextint
	movl	%eax, n(%rip)
	movl	$0, -40(%rbp)
	jmp	.L48
.L49:
	call	nextint
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	call	nextint
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	edge(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+edge(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L48:
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -40(%rbp)
	jl	.L49
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L50
.L51:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	qmem(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, -36(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L50:
	movl	n(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L51
	movl	$0, -28(%rbp)
	jmp	.L52
.L53:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+edge(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-16(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	el(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-12(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	el(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -28(%rbp)
.L52:
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -28(%rbp)
	jl	.L53
	movl	$0, %edx
	movl	$-1, %esi
	movl	$0, %edi
	call	f
	movl	n(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$2, (%rdx,%rax)
	movl	$1, %edx
	movl	$-1, %esi
	movl	$0, %edi
	call	g
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L54
.L57:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L55
	addl	$1, -24(%rbp)
	jmp	.L56
.L55:
	subl	$1, -24(%rbp)
.L56:
	addl	$1, -20(%rbp)
.L54:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L57
	cmpl	$0, -24(%rbp)
	jle	.L58
	leaq	.LC0(%rip), %rax
	jmp	.L59
.L58:
	leaq	.LC1(%rip), %rax
.L59:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	nextint
	.type	nextint, @function
nextint:
.LFB6:
	.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, -6(%rbp)
	jmp	.L2
.L4:
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L2:
	cmpb	$45, -6(%rbp)
	je	.L3
	cmpb	$47, -6(%rbp)
	jle	.L4
	cmpb	$57, -6(%rbp)
	jg	.L4
.L3:
	movb	$0, -5(%rbp)
	cmpb	$45, -6(%rbp)
	jne	.L5
	movb	$1, -5(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L5:
	movl	$0, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-6(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L6:
	cmpb	$47, -6(%rbp)
	jle	.L7
	cmpb	$57, -6(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -5(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextint, .-nextint
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB7:
	.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, -13(%rbp)
	jmp	.L13
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L13:
	cmpb	$45, -13(%rbp)
	je	.L14
	cmpb	$47, -13(%rbp)
	jle	.L15
	cmpb	$57, -13(%rbp)
	jg	.L15
.L14:
	movl	$0, -12(%rbp)
	cmpb	$45, -13(%rbp)
	jne	.L16
	movl	$1, -12(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L16:
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-13(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L17:
	cmpb	$47, -13(%rbp)
	jle	.L18
	cmpb	$57, -13(%rbp)
	jle	.L19
.L18:
	cmpl	$0, -12(%rbp)
	je	.L20
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L22
.L20:
	movq	-8(%rbp), %rax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextlong, .-nextlong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.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
	movq	%rdi, -24(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L24
.L25:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	je	.L25
	movl	$0, -4(%rbp)
	jmp	.L26
.L28:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L26:
	cmpb	$32, -5(%rbp)
	je	.L27
	cmpb	$10, -5(%rbp)
	jne	.L28
.L27:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextstr, .-nextstr
	.globl	edge
	.bss
	.align 32
	.type	edge, @object
	.size	edge, 799992
edge:
	.zero	799992
	.globl	qmem
	.align 32
	.type	qmem, @object
	.size	qmem, 799992
qmem:
	.zero	799992
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	e
	.align 32
	.type	e, @object
	.size	e, 800000
e:
	.zero	800000
	.globl	el
	.align 32
	.type	el, @object
	.size	el, 400000
el:
	.zero	400000
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400000
p:
	.zero	400000
	.text
	.globl	f
	.type	f, @function
f:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -20(%rbp)
	jne	.L31
	movl	$1, %eax
	jmp	.L32
.L31:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L33
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -24(%rbp)
	jne	.L33
	movl	$0, %eax
	jmp	.L32
.L33:
	movl	$0, -12(%rbp)
	jmp	.L34
.L38:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L35
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %ecx
	movl	-8(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	f
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jle	.L35
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L36
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$1, (%rdx,%rax)
	jmp	.L37
.L36:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$2, (%rdx,%rax)
.L37:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	jmp	.L32
.L35:
	addl	$1, -12(%rbp)
.L34:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L38
	movl	$0, %eax
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	f, .-f
	.globl	g
	.type	g, @function
g:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L40
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -24(%rbp)
	je	.L46
.L40:
	movl	$0, -8(%rbp)
	jmp	.L42
.L45:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	je	.L43
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L44
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	p(%rip), %rdx
	movl	-28(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	-4(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	g
	jmp	.L43
.L44:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %ecx
	movl	-4(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	g
.L43:
	addl	$1, -8(%rbp)
.L42:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L45
	jmp	.L39
.L46:
	nop
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	g, .-g
	.section	.rodata
.LC0:
	.string	"Fennec"
.LC1:
	.string	"Snuke"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	nextint
	movl	%eax, n(%rip)
	movl	$0, -40(%rbp)
	jmp	.L48
.L49:
	call	nextint
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	call	nextint
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	edge(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+edge(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L48:
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -40(%rbp)
	jl	.L49
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L50
.L51:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	qmem(%rip), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, -36(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L50:
	movl	n(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L51
	movl	$0, -28(%rbp)
	jmp	.L52
.L53:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+edge(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-16(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	el(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	e(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	el(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-12(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	el(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -28(%rbp)
.L52:
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -28(%rbp)
	jl	.L53
	movl	$0, %edx
	movl	$-1, %esi
	movl	$0, %edi
	call	f
	movl	n(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$2, (%rdx,%rax)
	movl	$1, %edx
	movl	$-1, %esi
	movl	$0, %edi
	call	g
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L54
.L57:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L55
	addl	$1, -24(%rbp)
	jmp	.L56
.L55:
	subl	$1, -24(%rbp)
.L56:
	addl	$1, -20(%rbp)
.L54:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L57
	cmpl	$0, -24(%rbp)
	jle	.L58
	leaq	.LC0(%rip), %rax
	jmp	.L59
.L58:
	leaq	.LC1(%rip), %rax
.L59:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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:
