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