#include <bits/stdc++.h>
using namespace std;
const string OK = "OK";
const string WA = "WRONG_ANSWER";
string solve(const string& s) {
  map<int, int> m;
  int minn = 100;
  for (int i = 0; i < int(s.size()); ++i) {
    m[s[i] - '0']++;
    if (s[i] - '0' < minn && s[i] != '0') minn = s[i] - '0';
  }
  string ret;
  if (minn < 100) {
    ret += char('0' + minn);
    m[minn]--;
  }
  for (int i = 0; i < 10; ++i) {
    while (m[i] > 0) {
      --m[i];
      ret += char('0' + i);
    }
  }
  return ret;
}
int main() {
  string orig;
  cin >> orig;
  string vec;
  cin >> vec;
  string sol = solve(orig);
  string ret = WA;
  if (sol == vec) {
    ret = OK;
  }
  cout << ret << endl;
  return 0;
}
