#include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv) {
  string i, o;
  cin >> i >> o;
  sort(i.begin(), i.end());
  if (i == "0" && i == o) {
    cout << "OK" << endl;
    return 0;
  }
  unsigned int z;
  for (z = 0; z < i.length() && i[z] == '0'; ++z)
    ;
  while (!i.empty() && i[0] == '0') i = i.substr(1);
  while (z--) i.insert(i.empty() ? 0 : 1, "0");
  cout << ((i == o) ? "OK" : "WRONG_ANSWER") << endl;
  return 0;
}
