#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, a, p;
  cin >> s >> p;
  long long int x = 0;
  sort(s.begin(), s.end());
  for (long long int i = 0; i < s.size(); i++) {
    if (s[i] != '0') {
      x = i;
      break;
    }
  }
  swap(s[x], s[0]);
  if (s == p)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
