#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, cases, k = 0;
  long long int n, m;
  char str1[100], str2[100];
  cin >> str1 >> str2;
  if (strlen(str1) != strlen(str2) || (str2[0] == '0' && strlen(str1) > 1)) {
    cout << "WRONG_ANSWER";
    return 0;
  }
  n = atoi(str1);
  m = atoi(str2);
  sort(str1, str1 + strlen(str1));
  int limit = strlen(str1);
  for (i = 0; i < limit; i++) {
    if (str1[i] != '0') break;
  }
  char str3[100];
  if (str1[i] != '\0') {
    str3[0] = str1[i];
    k++;
  }
  for (j = 0; j < limit; j++) {
    if (j == i) continue;
    str3[k++] = str1[j];
  }
  str3[k] = '\0';
  if (strcmp(str3, str2) == 0) {
    cout << "OK";
  } else {
    cout << "WRONG_ANSWER";
  }
  printf("\n");
  return 0;
}
