#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t;
  cin >> t;
  long long n = s.size();
  sort(s.begin(), s.end());
  string ans;
  long long i = 0, p = 0, x = 0;
  for (long long i = 0; i < n; i++) {
    if (s[i] != '0') {
      ans.push_back(s[i]);
      x = 1;
      p = i;
      break;
    }
  }
  if (!x) {
    if (t == s)
      cout << "OK"
           << "\n";
    else
      cout << "WRONG_ANSWER"
           << "\n";
  } else {
    for (long long i = 0; i < p; i++) ans.push_back(s[i]);
    for (long long i = p + 1; i < n; i++) ans.push_back(s[i]);
    if (ans == t)
      cout << "OK"
           << "\n";
    else
      cout << "WRONG_ANSWER"
           << "\n";
  }
}
