#include <bits/stdc++.h>
using namespace std;
int main() {
  string N, M, A;
  int i = 0;
  cin >> N >> A;
  if (N == "0" && A == "0") {
    cout << "OK";
    return 0;
  }
  sort(N.begin(), N.end());
  while (N[i] == '0') {
    ++i;
  }
  int t = N[i];
  N[i] = N[0];
  N[0] = t;
  if (N == A) {
    cout << "OK";
  } else
    cout << "WRONG_ANSWER";
}
