#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  string a, b;
  cin >> a >> b;
  sort(a.begin(), a.end());
  string res = "";
  int id = 1000000;
  for (int k = 0; k < a.size(); k++) {
    if (a[k] != '0') {
      res += a[k];
      id = k;
      break;
    }
  }
  for (int k = 0; k < a.size(); k++) {
    if (a[k] == '0' && k != id) res += a[k];
  }
  for (int k = 0; k < a.size(); k++) {
    if (a[k] != '0' && k != id) res += a[k];
  }
  cout << (res == b ? "OK" : "WRONG_ANSWER") << endl;
  return 0;
}
