#include <bits/stdc++.h>
using namespace std;
int main() {
  string n, k;
  cin >> n;
  cin >> k;
  sort(n.begin(), n.end());
  int i = 0;
  while (n[i] == '0' && i < n.length()) i++;
  if (i != n.length()) {
    char tmp = n[i];
    n[i] = n[0];
    n[0] = tmp;
  }
  for (i = 0; i < n.length(); i++) {
    if (n[i] != k[i]) {
      break;
    }
  }
  if (n.length() != k.length())
    cout << "WRONG_ANSWER";
  else if (i != n.length())
    cout << "WRONG_ANSWER";
  else
    cout << "OK";
  return 0;
}
