#include <bits/stdc++.h>
using namespace std;
int compare(const void *a, const void *b) { return (*(char *)a > *(char *)b); }
int main() {
  int i, j;
  char p[25], q[25];
  char *n, *a;
  n = p;
  a = q;
  cin >> p;
  for (i = 0; i < strlen(p); i++) {
    for (j = 0; j < strlen(p) - 1; j++) {
      if (p[j] > p[j + 1]) {
        char aux = p[j];
        p[j] = p[j + 1];
        p[j + 1] = aux;
      }
    }
  }
  if (strcmp(p, "0\0") == 0) {
    strcpy(q, "0\0");
  } else {
    a++;
    for (i = 0; i < strlen(p) && *n == '0'; i++) {
      *(a++) = '0';
      n++;
    }
    q[0] = *(n++);
    i++;
    for (; i < strlen(p); i++) {
      *(a++) = *(n++);
    }
    *a = '\0';
  }
  cin >> p;
  if (p[0] == '0' && q[0] == '0' && strcmp(p, q) == 0) {
    cout << "OK";
  } else if (strlen(p) == strlen(q) && strcmp(p, q) == 0) {
    cout << "OK";
  } else {
    cout << "WRONG_ANSWER";
  }
}
