#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
using std::sort;
using std::string;
using std::swap;
int main() {
  string in, answer;
  while (cin >> in >> answer) {
    sort(begin(in), end(in));
    if (in.at(0) == '0') {
      int loc = 0;
      for (int i = 0; i < in.size(); i++) {
        if (in.at(i) != '0') {
          loc = i;
          break;
        }
      }
      swap(in.at(0), in.at(loc));
    }
    cout << ((in == answer) ? "OK" : "WRONG_ANSWER") << endl;
  }
  return 0;
}
