#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  string n, m;
  cin >> n >> m;
  set<char> x;
  for (char c : n) {
    if (c != '0') x.emplace(c);
  }
  sort((n).begin(), (n).end());
  string joop = "";
  bool fl = true;
  if (((int)(x).size())) {
    joop += *x.begin();
    fl = false;
  }
  for (char c : n) {
    if (c == *x.begin() && !fl) {
      fl = true;
      continue;
    }
    joop += c;
  }
  if (joop == m) {
    cout << "OK" << endl;
  } else {
    cout << "WRONG_ANSWER" << endl;
  }
  return 0;
}
