public static void main ( String [ ] args ) {
  List < String > inputs = new ArrayList ( ) ;
  int nroCharactersToEnd = 0 ;
  int nroRemainingCharacters = 0 ;
  StringBuilder result = new StringBuilder ( ) ;
  Scanner keyboard = new Scanner ( System . in ) ;
  while ( true ) {
    try {
      String text = keyboard . nextLine ( ) ;
      if ( text . isEmpty ( ) ) break ;
      else {
        inputs . add ( text ) ;
      }
    }
    catch ( Exception e ) {
      break ;
    }
  }
  for ( String text : inputs ) {
    for ( int i = text . length ( ) - 1 ;
    i >= 0 ;
    i -- ) {
      if ( text . charAt ( i ) == ')' ) {
        nroCharactersToEnd ++ ;
      }
      else {
        break ;
      }
    }
    boolean containNumbers = text . contains ( "0" ) || text . contains ( "1" ) || text . contains ( "2" ) || text . contains ( "3" ) || text . contains ( "4" ) || text . contains ( "5" ) || text . contains ( "6" ) || text . contains ( "7" ) || text . contains ( "8" ) || text . contains ( "9" ) ;
    if ( ! text . matches ( "[+-]?\\d*(\\.\\d+)?" ) || ! containNumbers ) {
      if ( text . length ( ) / 2 >= nroCharactersToEnd ) {
        result . append ( "No\n" ) ;
      }
      else result . append ( "Yes\n" ) ;
    }
    nroCharactersToEnd = 0 ;
  }
  System . out . println ( result ) ;
}

public static void main ( String [ ] args ) { List < String > inputs = new ArrayList ( ) ; int nroCharactersToEnd = 0 ; int nroRemainingCharacters = 0 ; StringBuilder result = new StringBuilder ( ) ; Scanner keyboard = new Scanner ( System . in ) ; while ( true ) { try { String text = keyboard . nextLine ( ) ; if ( text . isEmpty ( ) ) break ; else { inputs . add ( text ) ; } } catch ( Exception e ) { break ; } } for ( String text : inputs ) { for ( int i = text . length ( ) - 1 ; i >= 0 ; i -- ) { if ( text . charAt ( i ) == ' ) ' ) { nroCharactersToEnd ++ ; } else { break ; } } boolean containNumbers = text . contains ( "0" ) || text . contains ( "1" ) || text . contains ( "2" ) || text . contains ( "3" ) || text . contains ( "4" ) || text . contains ( "5" ) || text . contains ( "6" ) || text . contains ( "7" ) || text . contains ( "8" ) || text . contains ( "9" ) ; if ( ! text . matches ( " [ + - ] ? \\ d * ( \\ . \\ d + ) ? " ) || ! containNumbers ) { if ( text . length ( ) / 2 >= nroCharactersToEnd ) { result . append ( " No \n " ) ; } else result . append ( " Yes \n " ) ; } nroCharactersToEnd = 0 ; } System . out . println ( result ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (while_statement condition: (parenthesized_expression (true)) body: (block (try_statement body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) consequence: (break_statement) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (break_statement)))))) (enhanced_for_statement type: (type_identifier) name: (identifier) value: (identifier) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (character_literal))) consequence: (block (expression_statement (update_expression (identifier)))) alternative: (block (break_statement))))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (unary_expression operand: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) right: (unary_expression operand: (identifier)))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))