#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, s1, c = "";
  int sum = 0;
  cin >> s >> s1;
  if (s == "0" && s1 == "0") {
    cout << "OK";
    return 0;
  }
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == '0') {
      sum++;
      s.erase(i, 1);
    }
  }
  sort(s.begin(), s.end());
  c += s[0];
  for (int i = 1; i <= sum; ++i) {
    c += '0';
  }
  if (sum == 0) {
    sum++;
  }
  for (int i = sum; i < s.size(); ++i) {
    c += char(s[i]);
  }
  if (c == s1) {
    cout << "OK";
    return 0;
  }
  cout << "WRONG_ANSWER";
}
