#include <bits/stdc++.h>
using namespace std;
int numn[20];
char str[20];
int main() {
  int n, m;
  scanf("%d", &n);
  scanf("%s", str);
  int cnt = 0;
  if (n == 0) numn[cnt++] = 0;
  while (n) {
    numn[cnt++] = n % 10;
    n = n / 10;
  }
  sort(numn, numn + cnt);
  for (int i = 0; i < cnt; ++i) {
    if (numn[i] != 0) {
      swap(numn[0], numn[i]);
      break;
    }
  }
  int sum = numn[0], flag = 0;
  if (strlen(str) != cnt) {
    puts("WRONG_ANSWER");
    return 0;
  }
  for (int i = 0; i < cnt; ++i) {
    if ((str[i] - '0') != numn[i]) {
      flag = 1;
      break;
    }
  }
  if (flag == 0)
    puts("OK");
  else
    puts("WRONG_ANSWER");
  return 0;
}
