Language: C++

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var N = sc.ReadInt();
        var g = new List<int>[N];
        for (int i = 0; i < N; i++)
        {
            g[i] = new List<int>();
        }
        for (int i = 0; i < N - 1; i++)
        {
            var a = sc.ReadInt() - 1;
            var b = sc.ReadInt() - 1;
            g[a].Add(b);
            g[b].Add(a);
        }

        var color = new int[N];
        color[0] = 1;
        color[N - 1] = 2;

        var q1 = new Queue<int>();
        q1.Enqueue(0);
        var q2 = new Queue<int>();
        q2.Enqueue(N - 1);
        while (q1.Count > 0 || q2.Count > 0)
        {
            if (q1.Count > 0)
            {
                var now = q1.Dequeue();
                foreach (var next in g[now])
                {
                    if (color[next] != 0) continue;
                    color[next] = 1;
                    q1.Enqueue(next);
                }
            }
            if (q2.Count > 0)
            {
                var now = q2.Dequeue();
                foreach (var next in g[now])
                {
                    if (color[next] != 0) continue;
                    color[next] = 2;
                    q2.Enqueue(next);
                }
            }
        }

        var c1 = color.Count(c => c == 1);
        var c2 = N - c1;
        if (c1 > c2)
        {
            Console.WriteLine("Fennec");
        }
        else
        {
            Console.WriteLine("Sunuke");
        }

    }

    static Scanner sc = new Scanner();
}
class Scanner
{
    string[] S = new string[0];
    int Index = 0;
    char[] Separators = new char[] { ' ' };

    public string Next()
    {
        if (this.Index < this.S.Length) return this.S[this.Index++];
        var line = "";
        while (line == "") line = Console.ReadLine();
        this.S = line.Split(this.Separators, StringSplitOptions.RemoveEmptyEntries);
        if (this.S.Length == 0) return this.Next();
        this.Index = 0;
        return this.S[this.Index++];
    }
    public string ReadStr()
    {
        return this.Next();
    }
    public char ReadChar()
    {
        return this.Next()[0];
    }
    public int ReadInt()
    {
        return int.Parse(this.Next());
    }
    public uint ReadUInt()
    {
        return uint.Parse(this.Next());
    }
    public long ReadLong()
    {
        return long.Parse(this.Next());
    }
    public double ReadDouble()
    {
        return double.Parse(this.Next());
    }
    public Tuple<int, int> ReadTup(int add = 0)
    {
        return Tuple.Create(this.ReadInt() + add, this.ReadInt() + add);
    }
    public Tuple<long, long> ReadTupLong(int add = 0)
    {
        return Tuple.Create(this.ReadLong() + add, this.ReadLong() + add);
    }
    public Tuple<int, int, int> ReadTup3(int add = 0)
    {
        return Tuple.Create(this.ReadInt() + add, this.ReadInt() + add, this.ReadInt() + add);
    }
    public Tuple<int, int, int, int> ReadTup4(int add = 0)
    {
        return Tuple.Create(this.ReadInt() + add, this.ReadInt() + add, this.ReadInt() + add, this.ReadInt() + add);
    }
    public int[] ReadIntArray(int n)
    {
        var array = new int[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadInt();
        }
        return array;
    }
    public long[] ReadLongArray(int n)
    {
        var array = new long[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadLong();
        }
        return array;
    }
    public double[] ReadDoubleArray(int n)
    {
        var array = new double[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadDouble();
        }
        return array;
    }
    public char[] ReadCharArray(int n)
    {
        var array = new char[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadChar();
        }
        return array;
    }
    public string[] ReadStrArray(int n)
    {
        var array = new string[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadStr();
        }
        return array;
    }
    public Tuple<long, long>[] ReadTupLongArray(int n, int add = 0)
    {
        var array = new Tuple<long, long>[n];
        for (int i = 0; i < n; i++)
        {
            array[i] = this.ReadTupLong(add);
        }
        return array;
    }
    public Tuple<int, int>[] ReadTupArray(int n, int add = 0)
    {
        var array = new Tuple<int, int>[n];
        for (int i = 0; i < n; i++)
        {
            array[i] = this.ReadTup(add);
        }
        return array;
    }
    public Tuple<int, int, int>[] ReadTup3Array(int n, int add = 0)
    {
        var array = new Tuple<int, int, int>[n];
        for (int i = 0; i < n; i++)
        {
            array[i] = this.ReadTup3(add);
        }
        return array;
    }
    public Tuple<int, int, int, int>[] ReadTup4Array(int n, int add = 0)
    {
        var array = new Tuple<int, int, int, int>[n];
        for (int i = 0; i < n; i++)
        {
            array[i] = this.ReadTup4(add);
        }
        return array;
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.IO;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Linq;
      |       ^~~~~~
a.cc:8:22: error: 'string' has not been declared
    8 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:8:31: error: expected ',' or '...' before 'args'
    8 |     static void Main(string[] args)
      |                               ^~~~
a.cc:69:12: error: 'Scanner' does not name a type
   69 |     static Scanner sc = new Scanner();
      |            ^~~~~~~
a.cc:70:2: error: expected ';' after class definition
   70 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:10:9: error: 'var' was not declared in this scope
   10 |         var N = sc.ReadInt();
      |         ^~~
a.cc:11:13: error: expected ';' before 'g'
   11 |         var g = new List<int>[N];
      |             ^
a.cc:12:29: error: 'N' was not declared in this scope
   12 |         for (int i = 0; i < N; i++)
      |                             ^
a.cc:14:13: error: 'g' was not declared in this scope
   14 |             g[i] = new List<int>();
      |             ^
a.cc:14:24: error: 'List' does not name a type
   14 |             g[i] = new List<int>();
      |                        ^~~~
a.cc:14:29: error: expected primary-expression before 'int'
   14 |             g[i] = new List<int>();
      |                             ^~~
a.cc:16:29: error: 'N' was not declared in this scope
   16 |         for (int i = 0; i < N - 1; i++)
      |                             ^
a.cc:18:17: error: expected ';' before 'a'
   18 |             var a = sc.ReadInt() - 1;
      |                 ^
a.cc:19:17: error: expected ';' before 'b'
   19 |             var b = sc.ReadInt() - 1;
      |                 ^
a.cc:20:13: error: 'g' was not declared in this scope
   20 |             g[a].Add(b);
      |             ^
a.cc:20:15: error: 'a' was not declared in this scope
   20 |             g[a].Add(b);
      |               ^
a.cc:20:22: error: 'b' was not declared in this scope
   20 |             g[a].Add(b);
      |                      ^
a.cc:24:13: error: expected ';' before 'color'
   24 |         var color = new int[N];
      |             ^~~~~
a.cc:25:9: error: 'color' was not declared in this scope
   25 |         color[0] = 1;
      |         ^~~~~
a.cc:26:15: error: 'N' was not declared in this scope
   26 |         color[N - 1] = 2;
      |               ^
a.cc:28:13: error: expected ';' before 'q1'
   28 |         var q1 = new Queue<int>();
      |             ^~
a.cc:29:9: error: 'q1' was not declared in this scope
   29 |         q1.Enqueue(0);
      |         ^~
a.cc:30:13: error: expected ';' before 'q2'
   30 |         var q2 = new Queue<int>();
      |             ^~
a.cc:31:9: error: 'q2' was not declared in this scope
   31 |         q2.Enqueue(N - 1);
      |         ^~
a.cc:36:21: error: expected ';' before 'now'
   36 |                 var now = q1.Dequeue();
      |                     ^~~
a.cc:37:30: error: expected ')' before 'next'
   37 |                 foreach (var next in g[now])
      |                              ^~~~
a.cc:37:25: note: to match this '('
   37 |                 foreach (var next in g[now])
      |                         ^
a.cc:37:17: error: 'foreach' was not declared in this scope
   37 |                 foreach (var next in g[now])
      |                 ^~~~~~~
a.cc:46:21: error: expected ';' before 'now'
   46 |                 var now = q2.Dequeue();
      |                     ^~~
a.cc:47:30: error: expected ')' before 'next'
   47 |                 foreach (var next in g[now])
      |                              ^~~~
a.cc:47:25: note: to match this '('
   47 |                 foreach (var next in g[now])
      |                         ^
a.cc:47:17: error: 'foreach' was not declared in this scope
   47 |                 foreach (var next in g[now])
      |                 ^~~~~~~
a.cc:56:13: error: expected ';' before 'c1'
   56 |         var c1 = color.Count(c => c == 1);
      |             ^~
a.cc:57:13: error: expected ';' before 'c2'
   57 |         var c2 = N - c1;
      |             ^~
a.cc:58:13: error: 'c1' was not declared in this scope
   58 |         if (c1 > c2)
      |             ^~
a.cc:58:18: error: 'c2' was not declared in this scope
   58 |         if (c1 > c2)
      |                  ^~
a.cc:60:13: error: 'Console' was not declared in this scope
   60 |             Console.WriteLine("Fennec");
      |             ^~~~~~~
a.cc:64:13: error: 'Console' was not declared in this scope
   64 |             Console.WriteLine("Sunuke");
      |             ^~~~~~~
a.cc: At global scope:
a.cc:73:5: error: 'string' does not name a type
   73 |     string[] S = new string[0];
      |     ^~~~~~
a.cc:75:9: error: expected unqualified-id before '[' token
   75 |     char[] Separators = new char[] { ' ' };
      |         ^
a.cc:77:11: error: expected ':' before 'string'
   77 |     public string Next()
      |           ^~~~~~~
      |           :
a.cc:77:12: error: 'string' does not name a type
   77 |     public string Next()
      |            ^~~~~~
a.cc:87:11: error: expected ':' before 'string'
   87 |     public string ReadStr()
      |           ^~~~~~~
      |           :
a.cc:87:12: error: 'string' does not name a type
   87 |     public string ReadStr()
      |            ^~~~~~
a.cc:91:11: error: expected ':' before 'char'
   91 |     public char ReadChar()
      |           ^~~~~
      |           :
a.cc:95:11: error: expected ':' before 'int'
   95 |     public int ReadInt()
      |           ^~~~
      |           :
a.cc:99:11: error: expected ':' before 'uint'
   99 |     public uint ReadUInt()
      |           ^~~~~
      |           :
a.cc:99:12: error: 'uint' does not name a type; did you mean 'int'?
   99 |     public uint ReadUInt()
      |            ^~~~
      |            int
a.cc:103:11: error: expected ':' before 'long'
  103 |     public long ReadLong()
      |           ^~~~~
      |           :
a.cc:107:11: error: expected ':' before 'double'
  107 |     public double ReadDouble()
      |           ^~~~~~~
      |           :
a.cc:111:11: error: expected ':' before 'Tuple'
  111 |     public Tuple<int, int> ReadTup(int add = 0)
      |           ^~~~~~
      |           :
a.cc:111:12: error: 'Tuple' does not name a type
  111 |     public Tuple<int, int> ReadTup(int add = 0)
      |            ^~~~~
a.cc:115:11: error: expected ':' before 'Tuple'
  115 |     public Tuple<long, long> ReadTupLong(int add = 0)
      |           ^~~~~~
      |           :
a.cc:115:12: error: 'Tuple' does not name a type
  115 |     public Tuple<long, long> ReadTupLong(int add = 0)
      |            ^~~~~
a.cc:119:11: error: expected ':' before 'Tuple'
  119 |     public Tuple<int, int, int> ReadTup3(int add = 0)
      |           ^~~~~~
      |           :
a.cc:119:12: error: 'Tuple' does not name a type
  119 |     public Tuple<int, int, int> ReadTup3(int add = 0)
      |            ^~~~~
a.cc:123:11: error: expected ':' before 'Tuple'
  123 |     public Tuple<int, int, int, int> ReadTup4(int add = 0)
      |           ^~~~~~
      |           :
a.cc:123:12: error: 'Tuple' does not name a type
  123 |     public Tuple<int, int, int, int> ReadTup4(int add = 0)
      |            ^~~~~
a.cc:127:11: error: expected ':' before 'int'
  127 |     public int[] ReadIntArray(int n)
      |           ^~~~
      |           :
a.cc:127:15: error: expected unqualified-id before '[' token
  127 |     public int[] ReadIntArray(int n)
      |               ^
a.cc:136:11: error: expected ':' before 'long'
  136 |     public long[] ReadLongArray(int n)
      |           ^~~~~
      |           :
a.cc:136:16: error: expected unqualified-id before '[' token
  136 |     public long[] ReadLongArray(int n)
      |                ^
a.cc:145:11: error: expected ':' before 'double'
  145 |     public double[] ReadDoubleArray(int n)
      |           ^~~~~~~
      |           :
a.cc:145:18: error: expected unqualified-id before '[' token
  145 |     public double[] ReadDoubleArray(int n)
      |                  ^
a.cc:154:11: error: expected ':' before 'char'
  154 |     public char[] ReadCharArray(int n)
      |           ^~~~~
      |           :
a.cc:154:16: error: expected unqualified-id before '[' token
  154 |     public char[] ReadCharArray(int n)
      |                ^
a.cc:163:11: error: expected ':' before 'string'
  163 |     public string[] ReadStrArray(int n)
      |           ^~~~~~~
      |           :
a.cc:163:12: error: 'string' does not name a type
  163 |     public string[] ReadStrArray(int n)
      |            ^~~~~~
a.cc:172:11: error: expected ':' before 'Tuple'
  172 |     public Tuple<long, long>[] ReadTupLongArray(int n, int add = 0)
      |           ^~~~~~
      |           :
a.cc:172:12: error: 'Tuple' does not name a type
  172 |     public Tuple<long, long>[] ReadTupLongArray(int n, int add = 0)
      |            ^~~~~
a.cc:181:11: error: expected ':' before 'Tuple'
  181 |     public Tuple<int, int>[] ReadTupArray(int n, int add = 0)
      |           ^~~~~~
      |           :
a.cc:181:12: error: 'Tuple' does not name a type
  181 |     public Tuple<int, int>[] ReadTupArray(int n, int add = 0)
      |            ^~~~~
a.cc:190:11: error: expected ':' before 'Tuple'
  190 |     public Tuple<int, int, int>[] ReadTup3Array(int n, int add = 0)
      |           ^~~~~~
      |           :
a.cc:190:12: error: 'Tuple' does not name a type
  190 |     public Tuple<int, int, int>[] ReadTup3Array(int n, int add = 0)
      |            ^~~~~
a.cc:199:11: error: expected ':' before 'Tuple'
  199 |     public Tuple<int, int, int, int>[] ReadTup4Array(int n, int add = 0)
      |           ^~~~~~
      |           :
a.cc:199:12: error: 'Tuple' does not name a type
  199 |     public Tuple<int, int,