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