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

```c
/* Coached by Dukkha */
#include <stdio.h>

#define N 100000

int oo[1 + (N - 1) * 2], oj[1 + (N - 1) * 2];

int link(int o, int j) {
	static int _ = 1;

	oo[_] = o, oj[_] = j;
	return _++;
}

int ae[N], pp[N], dd[N], sz[N];

void dfs(int p, int i, int d) {
	int o;

	pp[i] = p;
	dd[i] = d;
	sz[i] = 1;
	for (o = ae[i]; o; o = oo[o]) {
		int j = oj[o];

		if (j != p) {
			dfs(i, j, d + 1);
			sz[i] += sz[j];
		}
	}
}

int main() {
	int n, h, i, j, d;

	scanf("%d", &n);
	for (h = 0; h < n - 1; h++) {
		scanf("%d%d", &i, &j), i--, j--;
		ae[i] = link(ae[i], j);
		ae[j] = link(ae[j], i);
	}
	dfs(-1, 0, 0);
	d = dd[n - 1] / 2 + 1;
	i = n - 1;
	while (dd[i] != d)
		i = pp[i];
	printf(sz[i] >= n - sz[i] ? "Snuke\n" : "Fennec\n");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	oo
	.bss
	.align 32
	.type	oo, @object
	.size	oo, 799996
oo:
	.zero	799996
	.globl	oj
	.align 32
	.type	oj, @object
	.size	oj, 799996
oj:
	.zero	799996
	.text
	.globl	link
	.type	link, @function
link:
.LFB0:
	.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	_.0(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	oo(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	_.0(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	oj(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	_.0(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, _.0(%rip)
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	link, .-link
	.globl	ae
	.bss
	.align 32
	.type	ae, @object
	.size	ae, 400000
ae:
	.zero	400000
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 400000
dd:
	.zero	400000
	.globl	sz
	.align 32
	.type	sz, @object
	.size	sz, 400000
sz:
	.zero	400000
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	dd(%rip), %rdx
	movl	-28(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ae(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	oj(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L5
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	dfs
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	oo(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L4:
	cmpl	$0, -8(%rbp)
	jne	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"Snuke\n"
.LC3:
	.string	"Fennec\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	jmp	.L8
.L9:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ae(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	-40(%rbp), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	link
	movslq	%ebx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ae(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ae(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	-36(%rbp), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	link
	movslq	%ebx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ae(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L8:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -32(%rbp)
	jl	.L9
	movl	$0, %edx
	movl	$0, %esi
	movl	$-1, %edi
	call	dfs
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	$1, %eax
	movl	%eax, -28(%rbp)
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	jmp	.L10
.L11:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -40(%rbp)
.L10:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dd(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	sz(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jl	.L12
	leaq	.LC2(%rip), %rax
	jmp	.L13
.L12:
	leaq	.LC3(%rip), %rax
.L13:
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.data
	.align 4
	.type	_.0, @object
	.size	_.0, 4
_.0:
	.long	1
	.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	link
	.type	link, @function
link:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	_.0(%rip), %rdx
	leaq	oo(%rip), %rcx
	movl	%edi, (%rcx,%rdx,4)
	leaq	oj(%rip), %rcx
	movq	%rdx, %rax
	movl	%esi, (%rcx,%rdx,4)
	leal	1(%rdx), %edx
	movl	%edx, _.0(%rip)
	ret
	.cfi_endproc
.LFE23:
	.size	link, .-link
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%esi, %rax
	leaq	sz(%rip), %r9
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movl	$1, (%r9,%rax,4)
	movl	%esi, 100(%rsp)
	leaq	pp(%rip), %rsi
	movl	%edi, (%rsi,%rax,4)
	leaq	dd(%rip), %rsi
	movl	%edx, (%rsi,%rax,4)
	leaq	ae(%rip), %rsi
	movq	%rax, 120(%rsp)
	movslq	(%rsi,%rax,4), %rax
	movl	%edx, 4(%rsp)
	addl	$9, %edx
	movl	%edi, 128(%rsp)
	movl	%edx, 132(%rsp)
	testl	%eax, %eax
	je	.L3
	leaq	oj(%rip), %r10
	leaq	oo(%rip), %r11
.L4:
	movq	%rax, 104(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, 96(%rsp)
	cmpl	%eax, 128(%rsp)
	je	.L5
	movl	100(%rsp), %esi
	movslq	%eax, %rcx
	leaq	pp(%rip), %rax
	movl	$1, %edx
	movq	%rcx, 112(%rsp)
	movl	%esi, (%rax,%rcx,4)
	movl	4(%rsp), %eax
	leaq	dd(%rip), %rsi
	movl	$1, (%r9,%rcx,4)
	addl	$1, %eax
	movl	%eax, (%rsi,%rcx,4)
	leaq	ae(%rip), %rax
	movslq	(%rax,%rcx,4), %rax
	testl	%eax, %eax
	je	.L6
.L31:
	movq	%rax, 80(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, 60(%rsp)
	cmpl	%eax, 100(%rsp)
	je	.L7
	movl	96(%rsp), %esi
	movslq	%eax, %rdi
	leaq	pp(%rip), %rax
	leaq	dd(%rip), %rdx
	movq	%rdi, 88(%rsp)
	movl	%esi, (%rax,%rdi,4)
	movl	4(%rsp), %eax
	movl	$1, (%r9,%rdi,4)
	addl	$2, %eax
	movl	%eax, (%rdx,%rdi,4)
	leaq	ae(%rip), %rax
	movl	$1, %edx
	movslq	(%rax,%rdi,4), %rax
	testl	%eax, %eax
	je	.L8
.L30:
	movq	%rax, 64(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, 56(%rsp)
	cmpl	%eax, 96(%rsp)
	je	.L9
	movl	60(%rsp), %edx
	movslq	%eax, %rcx
	leaq	pp(%rip), %rax
	leaq	dd(%rip), %rsi
	movq	%rcx, 72(%rsp)
	movl	%edx, (%rax,%rcx,4)
	movl	4(%rsp), %eax
	movl	$1, %edx
	movl	$1, (%r9,%rcx,4)
	addl	$3, %eax
	movl	%eax, (%rsi,%rcx,4)
	leaq	ae(%rip), %rax
	movslq	(%rax,%rcx,4), %rax
	testl	%eax, %eax
	je	.L10
.L29:
	movq	%rax, 40(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, 8(%rsp)
	cmpl	%eax, 60(%rsp)
	je	.L11
	movl	56(%rsp), %edx
	movslq	%eax, %rcx
	leaq	pp(%rip), %rax
	leaq	dd(%rip), %rsi
	movq	%rcx, 48(%rsp)
	movl	%edx, (%rax,%rcx,4)
	movl	4(%rsp), %eax
	movl	$1, %edx
	movl	$1, (%r9,%rcx,4)
	addl	$4, %eax
	movl	%eax, (%rsi,%rcx,4)
	leaq	ae(%rip), %rax
	movslq	(%rax,%rcx,4), %rax
	testl	%eax, %eax
	je	.L12
.L28:
	movq	%rax, 16(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, (%rsp)
	cmpl	%eax, 56(%rsp)
	je	.L13
	movl	8(%rsp), %esi
	movslq	%eax, %rdi
	movl	$1, %edx
	leaq	pp(%rip), %rax
	leaq	dd(%rip), %rcx
	movq	%rdi, 24(%rsp)
	movl	%esi, (%rax,%rdi,4)
	movl	4(%rsp), %eax
	movl	$1, (%r9,%rdi,4)
	addl	$5, %eax
	movl	%eax, (%rcx,%rdi,4)
	leaq	ae(%rip), %rax
	movl	(%rax,%rdi,4), %eax
	testl	%eax, %eax
	je	.L14
.L27:
	movslq	%eax, %r8
	movl	(%r10,%r8,4), %eax
	cmpl	%eax, 8(%rsp)
	je	.L15
	movl	(%rsp), %edi
	movl	4(%rsp), %esi
	movslq	%eax, %rcx
	leaq	pp(%rip), %rdx
	movl	$1, (%r9,%rcx,4)
	movl	%edi, (%rdx,%rcx,4)
	leal	6(%rsi), %edx
	leaq	dd(%rip), %rdi
	movl	%edx, (%rdi,%rcx,4)
	leaq	ae(%rip), %rdx
	movslq	(%rdx,%rcx,4), %r12
	movl	$1, %edx
	testl	%r12d, %r12d
	je	.L16
	leal	7(%rsi), %edx
	movq	%r8, 32(%rsp)
	movl	%edx, 12(%rsp)
.L26:
	movl	(%r10,%r12,4), %r13d
	cmpl	%r13d, (%rsp)
	je	.L17
	movslq	%r13d, %r15
	movl	12(%rsp), %edx
	leaq	pp(%rip), %rsi
	movl	%eax, (%rsi,%r15,4)
	leaq	dd(%rip), %rsi
	movl	%edx, (%rsi,%r15,4)
	leaq	ae(%rip), %rsi
	movl	$1, %edx
	movslq	(%rsi,%r15,4), %rbp
	movl	$1, (%r9,%r15,4)
	testl	%ebp, %ebp
	je	.L18
	movl	4(%rsp), %edx
	leal	8(%rdx), %r8d
.L25:
	movl	(%r10,%rbp,4), %edi
	cmpl	%edi, %eax
	je	.L19
	movslq	%edi, %r14
	leaq	pp(%rip), %rdx
	leaq	dd(%rip), %rsi
	movl	%r13d, (%rdx,%r14,4)
	leaq	ae(%rip), %rdx
	movslq	(%rdx,%r14,4), %rbx
	movl	%r8d, (%rsi,%r14,4)
	movl	$1, %edx
	movl	$1, (%r9,%r14,4)
	testl	%ebx, %ebx
	je	.L20
.L24:
	movl	(%r10,%rbx,4), %esi
	cmpl	%esi, %r13d
	je	.L21
	movl	132(%rsp), %edx
	movl	%r8d, 156(%rsp)
	movq	%rcx, 144(%rsp)
	movl	%eax, 152(%rsp)
	movl	%esi, 140(%rsp)
	movl	%edi, 136(%rsp)
	call	dfs
	leaq	oo(%rip), %r11
	movslq	140(%rsp), %rsi
	leaq	sz(%rip), %r9
	movslq	(%r11,%rbx,4), %rbx
	movl	136(%rsp), %edi
	leaq	oj(%rip), %r10
	movl	(%r9,%rsi,4), %edx
	addl	%edx, (%r9,%r14,4)
	testl	%ebx, %ebx
	movl	152(%rsp), %eax
	movq	144(%rsp), %rcx
	movl	156(%rsp), %r8d
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%r9,%r14,4), %edx
.L20:
	addl	%edx, (%r9,%r15,4)
.L19:
	movslq	(%r11,%rbp,4), %rbp
	testl	%ebp, %ebp
	jne	.L25
	movl	(%r9,%r15,4), %edx
.L18:
	addl	%edx, (%r9,%rcx,4)
.L17:
	movslq	(%r11,%r12,4), %r12
	testl	%r12d, %r12d
	jne	.L26
	movq	32(%rsp), %r8
	movl	(%r9,%rcx,4), %edx
.L16:
	movq	24(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L15:
	movl	(%r11,%r8,4), %eax
	testl	%eax, %eax
	jne	.L27
	movq	24(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L14:
	movq	48(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L13:
	movq	16(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L28
	movq	48(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L12:
	movq	72(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L11:
	movq	40(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L29
	movq	72(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L10:
	movq	88(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L9:
	movq	64(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L30
	movq	88(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L8:
	movq	112(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L7:
	movq	80(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L31
	movq	112(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L6:
	movq	120(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L5:
	movq	104(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L4
.L3:
	addq	$168, %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
.L21:
	.cfi_restore_state
	movslq	(%r11,%rbx,4), %rbx
	testl	%ebx, %ebx
	jne	.L24
	jmp	.L23
	.cfi_endproc
.LFE24:
	.size	dfs, .-dfs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Snuke\n"
.LC1:
	.string	"Fennec\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC2(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L67
	xorl	%r15d, %r15d
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC3(%rip), %rbp
	leaq	ae(%rip), %r14
	leaq	oj(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L64:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movslq	_.0(%rip), %r8
	leaq	oo(%rip), %rcx
	addl	$1, %r15d
	leal	-1(%rax), %esi
	movl	20(%rsp), %eax
	leal	1(%r8), %edi
	movslq	%esi, %r9
	movl	%esi, 16(%rsp)
	leal	-1(%rax), %edx
	movd	(%r14,%r9,4), %xmm0
	movl	%r8d, (%r14,%r9,4)
	movq	%r8, %rax
	movl	%edx, (%rbx,%r8,4)
	addl	$2, %eax
	movl	%edx, 20(%rsp)
	movslq	%edx, %rdx
	movd	(%r14,%rdx,4), %xmm1
	movl	%eax, _.0(%rip)
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rcx,%r8,4)
	movl	12(%rsp), %eax
	movslq	%edi, %r8
	movl	%esi, (%rbx,%r8,4)
	subl	$1, %eax
	movl	%edi, (%r14,%rdx,4)
	cmpl	%r15d, %eax
	jg	.L64
.L67:
	xorl	%edx, %edx
	xorl	%esi, %esi
	movl	$-1, %edi
	call	dfs
	movl	12(%rsp), %r8d
	leaq	dd(%rip), %rsi
	leaq	pp(%rip), %rdi
	leal	-1(%r8), %edx
	movslq	%edx, %rax
	movl	%edx, 16(%rsp)
	movl	(%rsi,%rax,4), %r9d
	movl	%r9d, %ecx
	shrl	$31, %ecx
	addl	%r9d, %ecx
	sarl	%ecx
	addl	$1, %ecx
	cmpl	%ecx, %r9d
	je	.L66
	.p2align 4,,10
	.p2align 3
.L65:
	movslq	(%rdi,%rax,4), %rax
	cmpl	%ecx, (%rsi,%rax,4)
	jne	.L65
	movl	%eax, 16(%rsp)
.L66:
	leaq	sz(%rip), %rdx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movl	(%rdx,%rax,4), %eax
	subl	%eax, %r8d
	cmpl	%r8d, %eax
	leaq	.LC1(%rip), %rax
	cmovl	%rax, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L77
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L77:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.data
	.align 4
	.type	_.0, @object
	.size	_.0, 4
_.0:
	.long	1
	.globl	sz
	.bss
	.align 32
	.type	sz, @object
	.size	sz, 400000
sz:
	.zero	400000
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 400000
dd:
	.zero	400000
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.globl	ae
	.align 32
	.type	ae, @object
	.size	ae, 400000
ae:
	.zero	400000
	.globl	oj
	.align 32
	.type	oj, @object
	.size	oj, 799996
oj:
	.zero	799996
	.globl	oo
	.align 32
	.type	oo, @object
	.size	oo, 799996
oo:
	.zero	799996
	.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	link
	.type	link, @function
link:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	_.0(%rip), %rdx
	leaq	oo(%rip), %rcx
	movl	%edi, (%rcx,%rdx,4)
	leaq	oj(%rip), %rcx
	movq	%rdx, %rax
	movl	%esi, (%rcx,%rdx,4)
	leal	1(%rdx), %edx
	movl	%edx, _.0(%rip)
	ret
	.cfi_endproc
.LFE23:
	.size	link, .-link
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%esi, %rax
	leaq	sz(%rip), %r9
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movl	$1, (%r9,%rax,4)
	movl	%esi, 100(%rsp)
	leaq	pp(%rip), %rsi
	movl	%edi, (%rsi,%rax,4)
	leaq	dd(%rip), %rsi
	movl	%edx, (%rsi,%rax,4)
	leaq	ae(%rip), %rsi
	movq	%rax, 120(%rsp)
	movslq	(%rsi,%rax,4), %rax
	movl	%edx, 4(%rsp)
	addl	$9, %edx
	movl	%edi, 128(%rsp)
	movl	%edx, 132(%rsp)
	testl	%eax, %eax
	je	.L3
	leaq	oj(%rip), %r10
	leaq	oo(%rip), %r11
.L4:
	movq	%rax, 104(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, 96(%rsp)
	cmpl	%eax, 128(%rsp)
	je	.L5
	movl	100(%rsp), %esi
	movslq	%eax, %rcx
	leaq	pp(%rip), %rax
	movl	$1, %edx
	movq	%rcx, 112(%rsp)
	movl	%esi, (%rax,%rcx,4)
	movl	4(%rsp), %eax
	leaq	dd(%rip), %rsi
	movl	$1, (%r9,%rcx,4)
	addl	$1, %eax
	movl	%eax, (%rsi,%rcx,4)
	leaq	ae(%rip), %rax
	movslq	(%rax,%rcx,4), %rax
	testl	%eax, %eax
	je	.L6
.L31:
	movq	%rax, 80(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, 60(%rsp)
	cmpl	%eax, 100(%rsp)
	je	.L7
	movl	96(%rsp), %esi
	movslq	%eax, %rdi
	leaq	pp(%rip), %rax
	leaq	dd(%rip), %rdx
	movq	%rdi, 88(%rsp)
	movl	%esi, (%rax,%rdi,4)
	movl	4(%rsp), %eax
	movl	$1, (%r9,%rdi,4)
	addl	$2, %eax
	movl	%eax, (%rdx,%rdi,4)
	leaq	ae(%rip), %rax
	movl	$1, %edx
	movslq	(%rax,%rdi,4), %rax
	testl	%eax, %eax
	je	.L8
.L30:
	movq	%rax, 64(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, 56(%rsp)
	cmpl	%eax, 96(%rsp)
	je	.L9
	movl	60(%rsp), %edx
	movslq	%eax, %rcx
	leaq	pp(%rip), %rax
	leaq	dd(%rip), %rsi
	movq	%rcx, 72(%rsp)
	movl	%edx, (%rax,%rcx,4)
	movl	4(%rsp), %eax
	movl	$1, %edx
	movl	$1, (%r9,%rcx,4)
	addl	$3, %eax
	movl	%eax, (%rsi,%rcx,4)
	leaq	ae(%rip), %rax
	movslq	(%rax,%rcx,4), %rax
	testl	%eax, %eax
	je	.L10
.L29:
	movq	%rax, 40(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, 8(%rsp)
	cmpl	%eax, 60(%rsp)
	je	.L11
	movl	56(%rsp), %edx
	movslq	%eax, %rcx
	leaq	pp(%rip), %rax
	leaq	dd(%rip), %rsi
	movq	%rcx, 48(%rsp)
	movl	%edx, (%rax,%rcx,4)
	movl	4(%rsp), %eax
	movl	$1, %edx
	movl	$1, (%r9,%rcx,4)
	addl	$4, %eax
	movl	%eax, (%rsi,%rcx,4)
	leaq	ae(%rip), %rax
	movslq	(%rax,%rcx,4), %rax
	testl	%eax, %eax
	je	.L12
.L28:
	movq	%rax, 16(%rsp)
	movl	(%r10,%rax,4), %eax
	movl	%eax, (%rsp)
	cmpl	%eax, 56(%rsp)
	je	.L13
	movl	8(%rsp), %esi
	movslq	%eax, %rdi
	movl	$1, %edx
	leaq	pp(%rip), %rax
	leaq	dd(%rip), %rcx
	movq	%rdi, 24(%rsp)
	movl	%esi, (%rax,%rdi,4)
	movl	4(%rsp), %eax
	movl	$1, (%r9,%rdi,4)
	addl	$5, %eax
	movl	%eax, (%rcx,%rdi,4)
	leaq	ae(%rip), %rax
	movl	(%rax,%rdi,4), %eax
	testl	%eax, %eax
	je	.L14
.L27:
	movslq	%eax, %r8
	movl	(%r10,%r8,4), %eax
	cmpl	%eax, 8(%rsp)
	je	.L15
	movl	(%rsp), %edi
	movl	4(%rsp), %esi
	movslq	%eax, %rcx
	leaq	pp(%rip), %rdx
	movl	$1, (%r9,%rcx,4)
	movl	%edi, (%rdx,%rcx,4)
	leal	6(%rsi), %edx
	leaq	dd(%rip), %rdi
	movl	%edx, (%rdi,%rcx,4)
	leaq	ae(%rip), %rdx
	movslq	(%rdx,%rcx,4), %r12
	movl	$1, %edx
	testl	%r12d, %r12d
	je	.L16
	leal	7(%rsi), %edx
	movq	%r8, 32(%rsp)
	movl	%edx, 12(%rsp)
.L26:
	movl	(%r10,%r12,4), %r13d
	cmpl	%r13d, (%rsp)
	je	.L17
	movslq	%r13d, %r15
	movl	12(%rsp), %edx
	leaq	pp(%rip), %rsi
	movl	%eax, (%rsi,%r15,4)
	leaq	dd(%rip), %rsi
	movl	%edx, (%rsi,%r15,4)
	leaq	ae(%rip), %rsi
	movl	$1, %edx
	movslq	(%rsi,%r15,4), %rbp
	movl	$1, (%r9,%r15,4)
	testl	%ebp, %ebp
	je	.L18
	movl	4(%rsp), %edx
	leal	8(%rdx), %r8d
.L25:
	movl	(%r10,%rbp,4), %edi
	cmpl	%edi, %eax
	je	.L19
	movslq	%edi, %r14
	leaq	pp(%rip), %rdx
	leaq	dd(%rip), %rsi
	movl	%r13d, (%rdx,%r14,4)
	leaq	ae(%rip), %rdx
	movslq	(%rdx,%r14,4), %rbx
	movl	%r8d, (%rsi,%r14,4)
	movl	$1, %edx
	movl	$1, (%r9,%r14,4)
	testl	%ebx, %ebx
	je	.L20
.L24:
	movl	(%r10,%rbx,4), %esi
	cmpl	%esi, %r13d
	je	.L21
	movl	132(%rsp), %edx
	movl	%r8d, 156(%rsp)
	movq	%rcx, 144(%rsp)
	movl	%eax, 152(%rsp)
	movl	%esi, 140(%rsp)
	movl	%edi, 136(%rsp)
	call	dfs
	leaq	oo(%rip), %r11
	movslq	140(%rsp), %rsi
	leaq	sz(%rip), %r9
	movslq	(%r11,%rbx,4), %rbx
	movl	136(%rsp), %edi
	leaq	oj(%rip), %r10
	movl	(%r9,%rsi,4), %edx
	addl	%edx, (%r9,%r14,4)
	testl	%ebx, %ebx
	movl	152(%rsp), %eax
	movq	144(%rsp), %rcx
	movl	156(%rsp), %r8d
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%r9,%r14,4), %edx
.L20:
	addl	%edx, (%r9,%r15,4)
.L19:
	movslq	(%r11,%rbp,4), %rbp
	testl	%ebp, %ebp
	jne	.L25
	movl	(%r9,%r15,4), %edx
.L18:
	addl	%edx, (%r9,%rcx,4)
.L17:
	movslq	(%r11,%r12,4), %r12
	testl	%r12d, %r12d
	jne	.L26
	movq	32(%rsp), %r8
	movl	(%r9,%rcx,4), %edx
.L16:
	movq	24(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L15:
	movl	(%r11,%r8,4), %eax
	testl	%eax, %eax
	jne	.L27
	movq	24(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L14:
	movq	48(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L13:
	movq	16(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L28
	movq	48(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L12:
	movq	72(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L11:
	movq	40(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L29
	movq	72(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L10:
	movq	88(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L9:
	movq	64(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L30
	movq	88(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L8:
	movq	112(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L7:
	movq	80(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L31
	movq	112(%rsp), %rax
	movl	(%r9,%rax,4), %edx
.L6:
	movq	120(%rsp), %rax
	addl	%edx, (%r9,%rax,4)
.L5:
	movq	104(%rsp), %rax
	movslq	(%r11,%rax,4), %rax
	testl	%eax, %eax
	jne	.L4
.L3:
	addq	$168, %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
.L21:
	.cfi_restore_state
	movslq	(%r11,%rbx,4), %rbx
	testl	%ebx, %ebx
	jne	.L24
	jmp	.L23
	.cfi_endproc
.LFE24:
	.size	dfs, .-dfs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Snuke\n"
.LC1:
	.string	"Fennec\n"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC2(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, 12(%rsp)
	jle	.L67
	xorl	%r15d, %r15d
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC3(%rip), %rbp
	leaq	ae(%rip), %r14
	leaq	oj(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L64:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movslq	_.0(%rip), %r8
	leaq	oo(%rip), %rcx
	addl	$1, %r15d
	leal	-1(%rax), %esi
	movl	20(%rsp), %eax
	leal	1(%r8), %edi
	movslq	%esi, %r9
	movl	%esi, 16(%rsp)
	leal	-1(%rax), %edx
	movd	(%r14,%r9,4), %xmm0
	movl	%r8d, (%r14,%r9,4)
	movq	%r8, %rax
	movl	%edx, (%rbx,%r8,4)
	addl	$2, %eax
	movl	%edx, 20(%rsp)
	movslq	%edx, %rdx
	movd	(%r14,%rdx,4), %xmm1
	movl	%eax, _.0(%rip)
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rcx,%r8,4)
	movl	12(%rsp), %eax
	movslq	%edi, %r8
	movl	%esi, (%rbx,%r8,4)
	subl	$1, %eax
	movl	%edi, (%r14,%rdx,4)
	cmpl	%r15d, %eax
	jg	.L64
.L67:
	xorl	%edx, %edx
	xorl	%esi, %esi
	movl	$-1, %edi
	call	dfs
	movl	12(%rsp), %r8d
	leaq	dd(%rip), %rsi
	leaq	pp(%rip), %rdi
	leal	-1(%r8), %edx
	movslq	%edx, %rax
	movl	%edx, 16(%rsp)
	movl	(%rsi,%rax,4), %r9d
	movl	%r9d, %ecx
	shrl	$31, %ecx
	addl	%r9d, %ecx
	sarl	%ecx
	addl	$1, %ecx
	cmpl	%ecx, %r9d
	je	.L66
	.p2align 4,,10
	.p2align 3
.L65:
	movslq	(%rdi,%rax,4), %rax
	cmpl	%ecx, (%rsi,%rax,4)
	jne	.L65
	movl	%eax, 16(%rsp)
.L66:
	leaq	sz(%rip), %rdx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movl	(%rdx,%rax,4), %eax
	subl	%eax, %r8d
	cmpl	%r8d, %eax
	leaq	.LC1(%rip), %rax
	cmovl	%rax, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L77
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L77:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.data
	.align 4
	.type	_.0, @object
	.size	_.0, 4
_.0:
	.long	1
	.globl	sz
	.bss
	.align 32
	.type	sz, @object
	.size	sz, 400000
sz:
	.zero	400000
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 400000
dd:
	.zero	400000
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.globl	ae
	.align 32
	.type	ae, @object
	.size	ae, 400000
ae:
	.zero	400000
	.globl	oj
	.align 32
	.type	oj, @object
	.size	oj, 799996
oj:
	.zero	799996
	.globl	oo
	.align 32
	.type	oo, @object
	.size	oo, 799996
oo:
	.zero	799996
	.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:

/* Coached by Dukkha */
#include <stdio.h>

#define N 100000

int oo[1 + (N - 1) * 2], oj[1 + (N - 1) * 2];

int link(int o, int j) {
	static int _ = 1;

	oo[_] = o, oj[_] = j;
	return _++;
}

int ae[N], pp[N], dd[N], sz[N];

void dfs(int p, int i, int d) {
	int o;

	pp[i] = p;
	dd[i] = d;
	sz[i] = 1;
	for (o = ae[i]; o; o = oo[o]) {
		int j = oj[o];

		if (j != p) {
			dfs(i, j, d + 1);
			sz[i] += sz[j];
		}
	}
}

int main() {
	int n, h, i, j, d;

	scanf("%d", &n);
	for (h = 0; h < n - 1; h++) {
		scanf("%d%d", &i, &j), i--, j--;
		ae[i] = link(ae[i], j);
		ae[j] = link(ae[j], i);
	}
	dfs(-1, 0, 0);
	d = dd[n - 1] / 2 + 1;
	i = n - 1;
	while (dd[i] != d)
		i = pp[i];
	printf(sz[i] >= n - sz[i] ? "Snuke\n" : "Fennec\n");
	return 0;
}

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
/* Coached by Dukkha */
#include <stdio.h>

#define N 100000

int oo[1 + (N - 1) * 2], oj[1 + (N - 1) * 2];

int link(int o, int j) {
	static int _ = 1;

	oo[_] = o, oj[_] = j;
	return _++;
}

int ae[N], pp[N], dd[N], sz[N];

void dfs(int p, int i, int d) {
	int o;

	pp[i] = p;
	dd[i] = d;
	sz[i] = 1;
	for (o = ae[i]; o; o = oo[o]) {
		int j = oj[o];

		if (j != p) {
			dfs(i, j, d + 1);
			sz[i] += sz[j];
		}
	}
}

int main() {
	int n, h, i, j, d;

	scanf("%d", &n);
	for (h = 0; h < n - 1; h++) {
		scanf("%d%d", &i, &j), i--, j--;
		ae[i] = link(ae[i], j);
		ae[j] = link(ae[j], i);
	}
	dfs(-1, 0, 0);
	d = dd[n - 1] / 2 + 1;
	i = n - 1;
	while (dd[i] != d)
		i = pp[i];
	printf(sz[i] >= n - sz[i] ? "Snuke\n" : "Fennec\n");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	oo
	.bss
	.align 32
	.type	oo, @object
	.size	oo, 799996
oo:
	.zero	799996
	.globl	oj
	.align 32
	.type	oj, @object
	.size	oj, 799996
oj:
	.zero	799996
	.text
	.globl	link
	.type	link, @function
link:
.LFB0:
	.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	_.0(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	oo(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	_.0(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	oj(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	_.0(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, _.0(%rip)
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	link, .-link
	.globl	ae
	.bss
	.align 32
	.type	ae, @object
	.size	ae, 400000
ae:
	.zero	400000
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 400000
dd:
	.zero	400000
	.globl	sz
	.align 32
	.type	sz, @object
	.size	sz, 400000
sz:
	.zero	400000
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	dd(%rip), %rdx
	movl	-28(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ae(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	oj(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L5
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	dfs
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	oo(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L4:
	cmpl	$0, -8(%rbp)
	jne	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"Snuke\n"
.LC3:
	.string	"Fennec\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	jmp	.L8
.L9:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ae(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	-40(%rbp), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	link
	movslq	%ebx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ae(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ae(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	-36(%rbp), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	link
	movslq	%ebx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ae(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L8:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -32(%rbp)
	jl	.L9
	movl	$0, %edx
	movl	$0, %esi
	movl	$-1, %edi
	call	dfs
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	$1, %eax
	movl	%eax, -28(%rbp)
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	jmp	.L10
.L11:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -40(%rbp)
.L10:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dd(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	sz(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jl	.L12
	leaq	.LC2(%rip), %rax
	jmp	.L13
.L12:
	leaq	.LC3(%rip), %rax
.L13:
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.data
	.align 4
	.type	_.0, @object
	.size	_.0, 4
_.0:
	.long	1
	.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	oo
	.bss
	.align 32
	.type	oo, @object
	.size	oo, 799996
oo:
	.zero	799996
	.globl	oj
	.align 32
	.type	oj, @object
	.size	oj, 799996
oj:
	.zero	799996
	.text
	.globl	link
	.type	link, @function
link:
.LFB0:
	.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	_.0(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	oo(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	_.0(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	oj(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	_.0(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, _.0(%rip)
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	link, .-link
	.globl	ae
	.bss
	.align 32
	.type	ae, @object
	.size	ae, 400000
ae:
	.zero	400000
	.globl	pp
	.align 32
	.type	pp, @object
	.size	pp, 400000
pp:
	.zero	400000
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 400000
dd:
	.zero	400000
	.globl	sz
	.align 32
	.type	sz, @object
	.size	sz, 400000
sz:
	.zero	400000
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	pp(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	dd(%rip), %rdx
	movl	-28(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ae(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	oj(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L5
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	dfs
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	oo(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
.L4:
	cmpl	$0, -8(%rbp)
	jne	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"Snuke\n"
.LC3:
	.string	"Fennec\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	jmp	.L8
.L9:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ae(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	-40(%rbp), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	link
	movslq	%ebx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ae(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ae(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	-36(%rbp), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	link
	movslq	%ebx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ae(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L8:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -32(%rbp)
	jl	.L9
	movl	$0, %edx
	movl	$0, %esi
	movl	$-1, %edi
	call	dfs
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	$1, %eax
	movl	%eax, -28(%rbp)
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	jmp	.L10
.L11:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	pp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -40(%rbp)
.L10:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dd(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sz(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	sz(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jl	.L12
	leaq	.LC2(%rip), %rax
	jmp	.L13
.L12:
	leaq	.LC3(%rip), %rax
.L13:
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.data
	.align 4
	.type	_.0, @object
	.size	_.0, 4
_.0:
	.long	1
	.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:
