#include <bits/stdc++.h>
using namespace std;
string s;
vector<int> v;
int main(int argc, char const *argv[]) {
  cin >> s;
  int n = s.size();
  sort(s.begin(), s.end());
  for (int i = 0; i < n; i++) {
    if (s[i] > '0') {
      swap(s[0], s[i]);
      break;
    }
  }
  string q;
  cin >> q;
  for (int i = 0; i < n; i++) {
    if (q.size() != s.size() or q[i] != s[i]) {
      cout << "WRONG_ANSWER" << endl;
      return 0;
    }
  }
  cout << "OK" << endl;
  return 0;
}
