public static void main ( String [ ] args ) {
  FastScanner input = new FastScanner ( ) ;
  String question = input . next ( ) ;
  String ans = input . next ( ) ;
  if ( question . equals ( "0" ) && question . equals ( ans ) ) {
    System . out . println ( "OK" ) ;
    return ;
  }
  char a [ ] = question . toCharArray ( ) ;
  Arrays . sort ( a ) ;
  if ( a [ 0 ] == '0' ) {
    for ( int i = 0 ;
    i < question . length ( ) ;
    i ++ ) {
      if ( a [ i ] >= '1' && a [ i ] <= '9' ) {
        char temp = a [ i ] ;
        a [ i ] = '0' ;
        a [ 0 ] = temp ;
        break ;
      }
    }
  }
  String newQ = new String ( a ) ;
  if ( newQ . equals ( ans ) ) {
    System . out . println ( "OK" ) ;
  }
  else {
    System . out . println ( "WRONG_ANSWER" ) ;
  }
}

public static void main ( String [ ] args ) { FastScanner input = new FastScanner ( ) ; String question = input . next ( ) ; String ans = input . next ( ) ; if ( question . equals ( "0" ) && question . equals ( ans ) ) { System . out . println ( " OK " ) ; return ; } char a [ ] = question . toCharArray ( ) ; Arrays . sort ( a ) ; if ( a [ 0 ] == '0' ) { for ( int i = 0 ; i < question . length ( ) ; i ++ ) { if ( a [ i ] >= '1' && a [ i ] <= '9' ) { char temp = a [ i ] ; a [ i ] = '0' ; a [ 0 ] = temp ; break ; } } } String newQ = new String ( a ) ; if ( newQ . equals ( ans ) ) { System . out . println ( " OK " ) ; } else { System . out . println ( " WRONG _ ANSWER " ) ; } }
(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: (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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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 (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) 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: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (character_literal))) consequence: (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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal)) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal)))) consequence: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (array_access array: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (identifier))) (break_statement))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))))