#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, p;
  cin >> s >> p;
  bool OK = false;
  sort(s.begin(), s.end());
  if (s[0] == '0' && s.length() != 1) {
    int p = 0;
    while (s[p] == '0' && p < s.length()) {
      p++;
    }
    s[0] = s[p];
    s[p] = '0';
  }
  if (s == p) OK = true;
  if (OK)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
}
