#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, r;
  char t;
  cin >> s >> r;
  if (s == "0")
    if (r == "0") {
      printf("OK\n");
      return 0;
    } else {
      printf("WRONG_ANSWER\n");
      return 0;
    }
  sort(s.begin(), s.end());
  int i = 0;
  while (s[i] == '0') i++;
  t = s[0];
  s[0] = s[i];
  s[i] = t;
  if (s == r)
    printf("OK\n");
  else
    printf("WRONG_ANSWER\n");
  return 0;
}
