
let () =
  Scanf.scanf "%d" @@ fun n ->
  let g = Array.init n (fun _ -> []) in
  for _ = 1 to n-1 do
    Scanf.scanf " %d %d" @@ fun a b ->
    g.(a-1) <- b-1 :: g.(a-1);
    g.(b-1) <- a-1 :: g.(b-1)
  done;

  let dists_from s =
    let res = Array.make n n in
    let rec dfs x d =
      res.(x) <- d;
      g.(x) |> List.iter @@ fun y ->
        if d+1 < res.(y) then dfs y (d+1)
    in dfs s 0;
    res
  in

  let f = dists_from 0 in
  let s = dists_from (n-1) in
  let rec loop i v =
    if i >= n then (if v > n/2 then "Fennec" else "Snuke")
    else loop (i+1) (if f.(i) <= s.(i) then v+1 else v)
  in loop 0 0 |> print_endline