public static void main ( String [ ] args ) {
  try ( BufferedReader in = new BufferedReader ( new InputStreamReader ( System . in ) ) ) {
    for ( int i = 0 ;
    i < 8 ;
    i ++ ) {
      board [ i ] = in . readLine ( ) . toCharArray ( ) ;
      Arrays . fill ( visited [ i ] , false ) ;
    }
    dfs ( 7 , 0 , 0 ) ;
    System . out . println ( "LOSE" ) ;
  }
  catch ( IOException e ) {
  }
}

public static void main ( String [ ] args ) { try ( BufferedReader in = new BufferedReader ( new InputStreamReader ( System . in ) ) ) { for ( int i = 0 ; i < 8 ; i ++ ) { board [ i ] = in . readLine ( ) . toCharArray ( ) ; Arrays . fill ( visited [ i ] , false ) ; } dfs ( 7 , 0 , 0 ) ; System . out . println ( " LOSE " ) ; } catch ( IOException e ) { } }
(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 (try_with_resources_statement resources: (resource_specification (resource type: (type_identifier) name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))))) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)) (false)))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block)))))