#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, s1;
  cin >> s >> s1;
  sort(s.begin(), s.end());
  int i;
  if (s[0] == '0') {
    i = 1;
    while (s[i] != '\0') {
      if (s[i] != '0') {
        char c = s[i];
        s[i] = s[0];
        s[0] = c;
        break;
      }
      i++;
    }
  }
  if (s == s1)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
}
