#include <bits/stdc++.h>
using namespace std;
string s, ss, sss;
long long sz[90], sz2[90], wz;
int main() {
  cin >> s >> ss;
  if (s.length() != ss.length()) {
    cout << "WRONG_ANSWER" << endl;
    return 0;
  }
  for (int i = 0; i < s.length(); i++) {
    sz[i] = s[i] - '0';
  }
  for (int i = 0; i < ss.length(); i++) {
    sz2[i] = ss[i] - '0';
  }
  sort(sz, sz + s.length());
  while (sz[wz] == 0) {
    wz++;
    if (wz >= s.length()) {
      break;
    }
  }
  swap(sz[0], sz[wz]);
  for (int i = 0; i < s.length(); i++) {
    if (sz[i] != sz2[i]) {
      cout << "WRONG_ANSWER" << endl;
      return 0;
    }
  }
  cout << "OK" << endl;
  return 0;
}
