#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"from collections import*\n"
"input=open(0).readline\n"
"n=int(input())\n"
"e=[[]for _ in range(n)]\n"
"for _ in range(n-1):\n"
"    a,b=map(int,input().split())\n"
"    e[a-1].append(b-1)\n"
"    e[b-1].append(a-1)\n"
"f=[0]*n\n"
"v=[1]+[0]*~-n\n"
"q=deque([(0,0)])\n"
"while q:\n"
"    t,c=q.pop()\n"
"    v[t]=1\n"
"    f[t]=c\n"
"    for i in e[t]:\n"
"        if not v[i]:\n"
"            q.append((i,c+1))\n"
"s=[0]*n\n"
"v=[0]*~-n+[1]\n"
"q=deque([(n-1,0)])\n"
"while q:\n"
"    t,c=q.pop()\n"
"    v[t]=1\n"
"    s[t]=c\n"
"    for i in e[t]:\n"
"        if not v[i]:\n"
"            q.append((i,c+1))\n"
"a=b=0\n"
"for i,j in zip(f,s):\n"
"    if i<=j:\n"
"        a+=1\n"
"    else:\n"
"        b+=1\n"
"if a>b:\n"
"    print('Fennec')\n"
"else:\n"
"    print('Snuke')\n"
"\"";
  system(s);
  return 0;
}            