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