#include <bits/stdc++.h>
using namespace std;
bool check(string a) {
  for (int i = 0; i < a.size(); ++i) {
    if (a[i] == '0')
      return false;
    else
      return true;
  }
}
bool ok(string a, string b) {
  if (a.size() != b.size()) return false;
  for (int i = 0; i < a.size(); ++i) {
    if (a[i] != b[i]) return false;
  }
  return true;
}
int main() {
  string a, b;
  cin >> a >> b;
  sort(a.begin(), a.end());
  do {
    if (check(a)) break;
  } while (next_permutation(a.begin(), a.end()));
  printf("%s", (ok(a, b)) ? "OK" : "WRONG_ANSWER");
  return 0;
}
