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