#include <bits/stdc++.h>
int main() {
  char a[10], e[10];
  int b[10], d[10], i, j, c = 0, t;
  scanf("%s", a);
  scanf("%s", e);
  for (i = 0; i < strlen(a); i++) {
    b[i] = a[i] - '\0';
    b[i] = b[i] - 48;
    d[i] = e[i] - '\0';
    d[i] = d[i] - 48;
  }
  for (i = 0; i < strlen(a); i++) {
    for (j = i + 1; j < strlen(a); j++) {
      if (b[i] > b[j]) {
        t = b[i];
        b[i] = b[j];
        b[j] = t;
      }
    }
  }
  for (i = 0; i < strlen(a); i++) {
    if (b[i] == 0)
      c++;
    else
      break;
  }
  if (c != strlen(a)) {
    t = b[c];
    b[c] = b[0];
    b[0] = t;
  }
  c = 0;
  for (i = 0; i < strlen(a); i++) {
    if (b[i] == d[i]) c++;
  }
  if (c == strlen(a) && c == strlen(e))
    printf("OK");
  else
    printf("WRONG_ANSWER");
  return 0;
}
