#include <bits/stdc++.h>
int main() {
  char strM[11];
  int n, m;
  scanf("%d %s", &n, strM);
  sscanf(strM, "%d", &m);
  if (strM[0] == '0') {
    if (m != 0)
      puts("WRONG_ANSWER");
    else if (strM[1] == '0')
      puts("WRONG_ANSWER");
    else
      puts("OK");
    return 0;
  }
  int digits[10];
  int i = 0;
  while (n != 0) {
    digits[i] = n % 10;
    n /= 10;
    i++;
  }
  for (int j = 0; j < i; j++)
    for (int k = j + 1; k < i; k++)
      if (digits[j] < digits[k]) {
        int t = digits[j];
        digits[j] = digits[k];
        digits[k] = t;
      }
  if (digits[i - 1] == 0)
    for (int j = i - 2; j >= 0; j--)
      if (digits[j] != 0) {
        digits[i - 1] = digits[j];
        digits[j] = 0;
        break;
      }
  int j = 0;
  const char *result = "OK";
  while (m != 0) {
    if (digits[j] != m % 10) {
      result = "WRONG_ANSWER";
      break;
    }
    j++;
    m /= 10;
  }
  puts(result);
  return 0;
}
