public static void main ( String [ ] args ) throws IOException {
  BufferedReader in = new BufferedReader ( new InputStreamReader ( System . in ) ) ;
  int N = Integer . parseInt ( in . readLine ( ) ) ;
  Map < Integer , List < Integer >> v = new HashMap < > ( ) ;
  for ( int i = 0 ;
  i < N + 1 ;
  i ++ ) {
    v . put ( i , new ArrayList < Integer > ( ) ) ;
  }
  for ( int i = 0 ;
  i < N - 1 ;
  i ++ ) {
    Integer [ ] ab = Arrays . stream ( in . readLine ( ) . split ( " " ) ) . map ( Integer :: parseInt ) . toArray ( Integer [ ] :: new ) ;
    v . get ( ab [ 0 ] ) . add ( ab [ 1 ] ) ;
    v . get ( ab [ 1 ] ) . add ( ab [ 0 ] ) ;
  }
  int [ ] fenecDist = new int [ N + 1 ] ;
  Arrays . fill ( fenecDist , - 1 ) ;
  int [ ] snukeDist = new int [ N + 1 ] ;
  Arrays . fill ( snukeDist , - 1 ) ;
  dfs ( fenecDist , v , 1 , 0 ) ;
  dfs ( snukeDist , v , N , 0 ) ;
  int [ ] fScore = new int [ N + 1 ] ;
  for ( int i = 1 ;
  i <= N ;
  i ++ ) {
    if ( fenecDist [ i ] <= snukeDist [ i ] ) {
      fScore [ i ] = 1 ;
    }
  }
  if ( Arrays . stream ( fScore ) . sum ( ) > N / 2 ) {
    System . out . println ( "Fennec" ) ;
  }
  else {
    System . out . println ( "Snuke" ) ;
  }
}

public static void main ( String [ ] args ) throws IOException { BufferedReader in = new BufferedReader ( new InputStreamReader ( System . in ) ) ; int N = Integer . parseInt ( in . readLine ( ) ) ; Map < Integer , List < Integer > > v = new HashMap < > ( ) ; for ( int i = 0 ; i < N + 1 ; i ++ ) { v . put ( i , new ArrayList < Integer > ( ) ) ; } for ( int i = 0 ; i < N - 1 ; i ++ ) { Integer [ ] ab = Arrays . stream ( in . readLine ( ) . split ( " ▁ " ) ) . map ( Integer :: parseInt ) . toArray ( Integer [ ] :: new ) ; v . get ( ab [ 0 ] ) . add ( ab [ 1 ] ) ; v . get ( ab [ 1 ] ) . add ( ab [ 0 ] ) ; } int [ ] fenecDist = new int [ N + 1 ] ; Arrays . fill ( fenecDist , - 1 ) ; int [ ] snukeDist = new int [ N + 1 ] ; Arrays . fill ( snukeDist , - 1 ) ; dfs ( fenecDist , v , 1 , 0 ) ; dfs ( snukeDist , v , N , 0 ) ; int [ ] fScore = new int [ N + 1 ] ; for ( int i = 1 ; i <= N ; i ++ ) { if ( fenecDist [ i ] <= snukeDist [ i ] ) { fScore [ i ] = 1 ; } } if ( Arrays . stream ( fScore ) . sum ( ) > N / 2 ) { System . out . println ( " Fennec " ) ; } else { System . out . println ( " Snuke " ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier) (generic_type (type_identifier) (type_arguments (type_identifier))))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list))))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) name: (identifier) arguments: (argument_list (method_reference (identifier) (identifier)))) name: (identifier) arguments: (argument_list (method_reference (array_type element: (type_identifier) dimensions: (dimensions))))))) (expression_statement (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal))))) (expression_statement (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal))))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (unary_expression operand: (decimal_integer_literal))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (unary_expression operand: (decimal_integer_literal))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (decimal_integer_literal) (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (decimal_integer_literal)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier)))) consequence: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) name: (identifier) arguments: (argument_list)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))))