#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, r;
  cin >> s >> r;
  sort(s.begin(), s.end());
  int i = 0;
  while (s[i] == '0' && i < s.length()) i++;
  if (i < s.length()) swap(s[i], s[0]);
  if (s.length() != r.length()) {
    cout << "WRONG_ANSWER";
    return 0;
  }
  for (i = 0; i < s.length(); i++) {
    if (s[i] != r[i]) {
      cout << "WRONG_ANSWER";
      return 0;
    }
  }
  cout << "OK";
  return 0;
}
