static void solve ( ) throws IOException {
  String X = sc . next ( ) ;
  String Y = sc . next ( ) ;
  int offset = 0 ;
  while ( Y . charAt ( Y . length ( ) - 1 - offset ) == '0' ) offset ++ ;
  int K = 0 ;
  while ( X . charAt ( X . length ( ) - 1 - offset - K ) == '0' ) K ++ ;
  sb . append ( K + "\n" ) ;
}

static void solve ( ) throws IOException { String X = sc . next ( ) ; String Y = sc . next ( ) ; int offset = 0 ; while ( Y . charAt ( Y . length ( ) - 1 - offset ) == '0' ) offset ++ ; int K = 0 ; while ( X . charAt ( X . length ( ) - 1 - offset - K ) == '0' ) K ++ ; sb . append ( K + " \n " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)) right: (identifier)))) right: (character_literal))) body: (expression_statement (update_expression (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)) right: (identifier)) right: (identifier)))) right: (character_literal))) body: (expression_statement (update_expression (identifier)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (string_literal)))))))