#![allow(unused_mut)]
#![allow(non_snake_case)]
#![allow(unused_macros)]
#![allow(unused_variables)]
#![allow(unused_imports)]
// https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        let mut next = || { iter.next().unwrap() };
        input_inner!{next, $($r)*}
    };
    ($($r:tt)*) => {
        let stdin = std::io::stdin();
        let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));
        let mut next = move || -> String{
            bytes
                .by_ref()
                .map(|r|r.unwrap() as char)
                .skip_while(|c|c.is_whitespace())
                .take_while(|c|!c.is_whitespace())
                .collect()
        };
        input_inner!{next, $($r)*}
    };
}

macro_rules! input_inner {
    ($next:expr) => {};
    ($next:expr, ) => {};

    ($next:expr, $var:ident : $t:tt $($r:tt)*) => {
        let mut $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };
}

macro_rules! read_value {
    ($next:expr, ( $($t:tt),* )) => {
        ( $(read_value!($next, $t)),* )
    };

    ($next:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
    };

    ($next:expr, chars) => {
        read_value!($next, String).chars().collect::<Vec<char>>()
    };

    ($next:expr, usize1) => {
        read_value!($next, usize) - 1
    };

    ($next:expr, $t:ty) => {
        $next().parse::<$t>().expect("Parse error")
    };
}

macro_rules! max {
    ($x: expr) => ($x);
    ($x: expr, $($y: expr),+) => {
        ::std::cmp::max($x, max!($($y),+))
    };
}

macro_rules! min {
    ($x: expr) => ($x);
    ($x: expr, $($y: expr),+) => {
        ::std::cmp::min($x, max!($($y),+))
    };
}

use std::cmp;
use std::collections::{HashSet, BinaryHeap, VecDeque};
use std::iter::FromIterator;
fn main() {
    input! {
        N: usize,
        edges: [(usize1, usize1); N-1],
    }

    let mut e = vec![Vec::new(); N];
    for &(a, b) in edges.iter() {
        e[a].push(b);
        e[b].push(a);
    }

    let mut is_visited = vec![false; N];
    let mut feneque = VecDeque::new();
    feneque.push_back(0);
    let mut fen_count = 0;
    let mut sunuque = VecDeque::new();   
    sunuque.push_back(N-1);
    let mut sun_count = 0;

    loop {
        let c1 = feneque.len();
        for _ in 0..c1 {
            let v = feneque.pop_front().unwrap();
            if !is_visited[v] {
                fen_count += 1;
                is_visited[v] = true;
                for &vv in e[v].iter() {
                    feneque.push_back(vv);
                }
            }
        }

        let c2 = sunuque.len();
        for _ in 0..c2 {
            let v = sunuque.pop_front().unwrap();
            if !is_visited[v] {
                sun_count += 1;
                is_visited[v] = true;
                for &vv in e[v].iter() {
                    sunuque.push_back(vv);
                }
            }
        }
        if (c1, c2) == (0, 0) { break; }
    }
    if fen_count > sun_count {
        println!("Fennec");
    } else {
        println!("Snuke");
    }
}


Measured memory_bytes: 14588