#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  int i, j, k;
  cin >> a >> b;
  if (a == "0" && b == "0") {
    cout << "OK\n";
    return 0;
  }
  sort(a.begin(), a.end());
  vector<string> v;
  do {
    if (a[0] != '0') v.push_back(a);
  } while (next_permutation(a.begin(), a.end()));
  sort(v.begin(), v.end());
  if (v.size() == 0) {
    cout << "WRONG_ANSWER\n";
    return 0;
  }
  if (v[0] == b)
    cout << "OK\n";
  else
    cout << "WRONG_ANSWER\n";
  return 0;
}
