#include <bits/stdc++.h>
int compare(const void *a, const void *b) {
  char ca = *(char *)a;
  char cb = *(char *)b;
  return ca - cb;
}
int main() {
  static char s[11], t[11];
  int a, b, i;
  char tmp;
  scanf("%s%s", s, t);
  a = strlen(s);
  b = strlen(t);
  qsort(s, a, sizeof *s, compare);
  for (i = 0; i < a && s[i] == '0'; i++)
    ;
  if (i != a) {
    tmp = s[0];
    s[0] = s[i];
    s[i] = tmp;
  }
  printf(strcmp(s, t) == 0 ? "OK\n" : "WRONG_ANSWER\n");
  return 0;
}
