#include <bits/stdc++.h>
using namespace std;
int n, m;
int a[20];
int i, j;
int ans, sum, mark;
char aa[20];
char bb[20];
int main() {
  scanf("%s", &aa);
  scanf("%s", &bb);
  if (strlen(aa) != strlen(bb)) {
    printf("WRONG_ANSWER\n");
    return 0;
  }
  for (i = 0; i < strlen(aa); i++) {
    n = n * 10 + aa[i] - '0';
  }
  for (i = 0; i < strlen(bb); i++) {
    m = m * 10 + bb[i] - '0';
  }
  i = 1;
  while (n > 0) {
    a[i] = n % 10;
    n = n / 10;
    i++;
  }
  sort(a + 1, a + i);
  ans = 0;
  sum = 0;
  for (j = 1; j < i; j++) {
    if (a[j] == 0)
      sum++;
    else {
      if (mark == 0) {
        mark = 1;
        ans += a[j];
        while (sum--) {
          ans = ans * 10;
        }
      } else
        ans = ans * 10 + a[j];
    }
  }
  if (ans == m)
    printf("OK\n");
  else
    printf("WRONG_ANSWER\n");
  return 0;
}
