public static void main ( String [ ] args ) throws Exception {
  Scanner scan = new Scanner ( System . in ) ;
  Main main = new Main ( ) ;
  int l ;
  int N = 0 ;
  for ( l = 1 ;
  l < 11 ;
  l ++ ) {
    main . output ( false , ( int ) Math . pow ( 10 , l ) ) ;
    if ( main . input ( scan ) == 0 ) {
      break ;
    }
  }
  if ( l != 11 ) {
    int nMin = ( int ) Math . pow ( 10 , l - 1 ) ;
    int nMax = ( int ) Math . pow ( 10 , l ) - 1 ;
    while ( nMin != nMax ) {
      int n = ( nMin + nMax ) / 2 ;
      main . output ( false , ( n * 10L ) ) ;
      if ( main . input ( scan ) == 0 ) {
        nMin = n + 1 ;
      }
      else {
        nMax = n ;
      }
    }
    N = nMin ;
  }
  else {
    for ( l = 0 ;
    l < 10 ;
    l ++ ) {
      main . output ( false , ( int ) Math . pow ( 10 , l ) * 2 ) ;
      if ( main . input ( scan ) == 1 ) {
        N = ( int ) Math . pow ( 10 , l ) ;
        break ;
      }
    }
  }
  main . output ( true , N ) ;
}

public static void main ( String [ ] args ) throws Exception { Scanner scan = new Scanner ( System . in ) ; Main main = new Main ( ) ; int l ; int N = 0 ; for ( l = 1 ; l < 11 ; l ++ ) { main . output ( false , ( int ) Math . pow ( 10 , l ) ) ; if ( main . input ( scan ) == 0 ) { break ; } } if ( l != 11 ) { int nMin = ( int ) Math . pow ( 10 , l - 1 ) ; int nMax = ( int ) Math . pow ( 10 , l ) - 1 ; while ( nMin != nMax ) { int n = ( nMin + nMax ) / 2 ; main . output ( false , ( n * 10L ) ) ; if ( main . input ( scan ) == 0 ) { nMin = n + 1 ; } else { nMax = n ; } } N = nMin ; } else { for ( l = 0 ; l < 10 ; l ++ ) { main . output ( false , ( int ) Math . pow ( 10 , l ) * 2 ) ; if ( main . input ( scan ) == 1 ) { N = ( int ) Math . pow ( 10 , l ) ; break ; } } } main . output ( true , N ) ; }
(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 (field_access object: (identifier) field: (identifier)))))) (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: (integral_type) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (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 (false) (cast_expression type: (integral_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal))) consequence: (block (break_statement))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (cast_expression type: (integral_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (cast_expression type: (integral_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier)))) right: (decimal_integer_literal)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (false) (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (block (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (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 (false) (binary_expression left: (cast_expression type: (integral_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier)))) right: (decimal_integer_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (integral_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier)))))) (break_statement))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (true) (identifier))))))