static String isDivisibleBy5 ( String bin ) {
  int l = bin . length ( ) ;
  if ( l % 2 != 0 ) bin = '0' + bin ;
  int odd_sum = 0 , even_sum = 0 ;
  int isOddDigit = 1 ;
  for ( int i = 0 ;
  i < bin . length ( ) ;
  i += 2 ) {
    if ( isOddDigit != 0 ) odd_sum += equivalentBase4 ( bin . substring ( i , i + 2 ) ) ;
    else even_sum += equivalentBase4 ( bin . substring ( i , i + 2 ) ) ;
    isOddDigit ^= 1 ;
  }
  if ( Math . abs ( odd_sum - even_sum ) % 5 == 0 ) return "Yes" ;
  return "No" ;
}

static String isDivisibleBy5 ( String bin ) { int l = bin . length ( ) ; if ( l % 2 != 0 ) bin = '0' + bin ; int odd_sum = 0 , even_sum = 0 ; int isOddDigit = 1 ; for ( int i = 0 ; i < bin . length ( ) ; i += 2 ) { if ( isOddDigit != 0 ) odd_sum += equivalentBase4 ( bin . substring ( i , i + 2 ) ) ; else even_sum += equivalentBase4 ( bin . substring ( i , i + 2 ) ) ; isOddDigit ^= 1 ; } if ( Math . abs ( odd_sum - even_sum ) % 5 == 0 ) return " Yes " ; return " No " ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (character_literal) right: (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (assignment_expression left: (identifier) right: (decimal_integer_literal)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal)))))))) alternative: (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (return_statement (string_literal))) (return_statement (string_literal))))