#include <bits/stdc++.h>
using namespace std;
long long int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v,
    w, x, y, z, sum = 0, total = 0, res = 0, ans = 0;
int main() {
  string ar, br;
  vector<long long int> cr;
  cin >> ar >> br;
  for (long long int i = 0; i < ar.size(); i++) cr.push_back(ar[i] - '0');
  sort(cr.begin(), cr.end());
  for (long long int i = 0; i < cr.size(); i++) {
    if (cr[i] > 0) {
      swap(cr[i], cr[0]);
      break;
    }
  }
  if (cr.size() != br.size()) {
    cout << "WRONG_ANSWER\n";
    return 0;
  }
  for (long long int i = 0; i < cr.size(); i++) {
    if (cr[i] != (br[i] - '0')) {
      cout << "WRONG_ANSWER\n";
      return 0;
    }
  }
  cout << "OK\n";
}
