#include <bits/stdc++.h>
int main() {
  long long n, m;
  int dig[10];
  char cn[12], cm[12];
  while (scanf("%s\n%s", &cn, &cm) != EOF) {
    if (strlen(cn) != strlen(cm)) {
      printf("WRONG_ANSWER\n");
      continue;
    }
    n = atol(cn);
    m = atol(cm);
    for (int i = 0; i < 10; i++) dig[i] = 0;
    if (n < 10) {
      if (n == m)
        printf("OK\n");
      else
        printf("WRONG_ANSWER\n");
    } else {
      while (n) {
        dig[n % 10]++;
        n /= 10;
      }
      long long ret = 0;
      for (int i = 1; i <= 9; i++) {
        if (dig[i]) {
          ret *= 10;
          ret += i;
          dig[i]--;
          break;
        }
      }
      for (int i = 0; i <= 9; i++) {
        while (dig[i]) {
          ret *= 10;
          ret += i;
          dig[i]--;
        }
      }
      if (ret == m)
        printf("OK\n");
      else
        printf("WRONG_ANSWER\n");
    }
  }
  return 0;
}
