private static void run ( ) {
  String [ ] input = readLine ( ) . split ( "" ) ;
  int count = 0 ;
  if ( input [ 0 ] . equals ( "1" ) ) count ++ ;
  if ( input [ 1 ] . equals ( "1" ) ) count ++ ;
  if ( input [ 2 ] . equals ( "1" ) ) count ++ ;
  System . out . println ( count ) ;
}

private static void run ( ) { String [ ] input = readLine ( ) . split ( " " ) ; int count = 0 ; if ( input [ 0 ] . equals ( "1" ) ) count ++ ; if ( input [ 1 ] . equals ( "1" ) ) count ++ ; if ( input [ 2 ] . equals ( "1" ) ) count ++ ; System . out . println ( count ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (method_invocation object: (array_access array: (identifier) index: (decimal_integer_literal)) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (update_expression (identifier)))) (if_statement condition: (parenthesized_expression (method_invocation object: (array_access array: (identifier) index: (decimal_integer_literal)) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (update_expression (identifier)))) (if_statement condition: (parenthesized_expression (method_invocation object: (array_access array: (identifier) index: (decimal_integer_literal)) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (update_expression (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))