#include <bits/stdc++.h>
using namespace std;
char n[2000000], m[2000000];
int k;
int main() {
  scanf("%s\n", n);
  scanf("%s", m);
  if (strcmp(n, "0") == 0) {
    if (strcmp(m, "0") == 0)
      printf("OK");
    else
      printf("WRONG_ANSWER");
    return 0;
  }
  sort(n, n + strlen(n));
  k = 0;
  while (n[k] == '0') k++;
  swap(n[k], n[0]);
  if (strcmp(n, m) == 0)
    printf("OK");
  else
    printf("WRONG_ANSWER");
  return 0;
}
