#include <bits/stdc++.h>
using namespace std;
void solve();
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int TESTS = 1;
  while (TESTS--) {
    solve();
  }
  return 0;
}
void solve() {
  string s, t;
  cin >> s >> t;
  long long a[10];
  memset(a, 0, sizeof(a));
  if (s.length() == 1 && s[0] == '0') {
    if (t == s) {
      cout << "OK";
      return;
    } else {
      cout << "WRONG_ANSWER";
      return;
    }
  }
  for (long long i = 0; i < s.length(); i++) {
    a[s[i] - '0']++;
  }
  string ans;
  if (a[0] == 0) {
    ans = s;
    sort(ans.begin(), ans.end());
    if (ans == t) {
      cout << "OK";
      return;
    } else {
      cout << "WRONG_ANSWER";
      return;
    }
  } else {
    long long index;
    for (long long i = 1; i < 10; i++) {
      if (a[i] != 0) {
        index = i;
        break;
      }
    }
    a[index]--;
    for (long long i = 0; i < 10; i++) {
      if (a[i] != 0) {
        while (a[i]--) {
          char temp = '0' + i;
          ans += string(1, temp);
        }
      }
    }
    sort(ans.begin(), ans.end());
    char t2 = '0' + index;
    string rtans = string(1, t2);
    rtans += ans;
    if (rtans == t) {
      cout << "OK";
      return;
    } else {
      cout << "WRONG_ANSWER";
      return;
    }
  }
  return;
}
