static void tc ( ) {
  int t , m ;
  t = scan . nextInt ( ) ;
  m = scan . nextInt ( ) ;
  meme = new int [ m ] ;
  while ( t -- > 0 ) {
    String query = scan . next ( ) ;
    if ( query . equals ( "alloc" ) ) alloc ( ) ;
    else if ( query . equals ( "erase" ) ) erase ( ) ;
    else defragment ( ) ;
  }
}

static void tc ( ) { int t , m ; t = scan . nextInt ( ) ; m = scan . nextInt ( ) ; meme = new int [ m ] ; while ( t -- > 0 ) { String query = scan . next ( ) ; if ( query . equals ( " alloc " ) ) alloc ( ) ; else if ( query . equals ( " erase " ) ) erase ( ) ; else defragment ( ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (while_statement condition: (parenthesized_expression (binary_expression left: (update_expression (identifier)) right: (decimal_integer_literal))) 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 (string_literal)))) consequence: (expression_statement (method_invocation name: (identifier) arguments: (argument_list))) alternative: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (method_invocation name: (identifier) arguments: (argument_list))) alternative: (expression_statement (method_invocation name: (identifier) arguments: (argument_list)))))))))