public static void solve ( int T ) throws IOException {
  int n = sc . nextInt ( ) ;
  if ( n == 1 ) {
    System . out . println ( "O" ) ;
    return ;
  }
  if ( n == 2 ) {
    System . out . println ( "OO" ) ;
    return ;
  }
  int [ ] f = new int [ n + 5 ] ;
  int a = 0 ;
  int b = 1 ;
  f [ 0 ] = a ;
  f [ 1 ] = b ;
  for ( int i = 2 ;
  i <= n + 4 ;
  i ++ ) {
    int c = a + b ;
    f [ i ] = c ;
    a = b ;
    b = c ;
  };
}

public static void solve ( int T ) throws IOException { int n = sc . nextInt ( ) ; if ( n == 1 ) { System . out . println ( " O " ) ; return ; } if ( n == 2 ) { System . out . println ( " OO " ) ; return ; } int [ ] f = new int [ n + 5 ] ; int a = 0 ; int b = 1 ; f [ 0 ] = a ; f [ 1 ] = b ; for ( int i = 2 ; i <= n + 4 ; i ++ ) { int c = a + b ; f [ i ] = c ; a = b ; b = c ; } ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) (throws (type_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: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (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))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (identifier))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (identifier))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))