#include <bits/stdc++.h>
using namespace std;
int main() {
  string res, tmp, tag;
  cin >> res >> tag;
  if (tag.size() != res.size()) {
    cout << "WRONG_ANSWER";
    return 0;
  }
  int cnt[10] = {0};
  for (int i = 0; i < res.size(); i++) {
    cnt[res[i] - '0']++;
  }
  for (int i = 1; i <= 9; i++) {
    if (cnt[i] > 0) {
      tmp += (i + '0');
      cnt[i]--;
      break;
    }
  }
  for (int i = 0; i <= 9; i++) {
    while (cnt[i] > 0) {
      tmp += (i + '0');
      cnt[i]--;
    }
  }
  if (tmp == tag)
    cout << "OK";
  else
    cout << "WRONG_ANSWER";
  return 0;
}
