#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  string b;
  cin >> a;
  cin >> b;
  string q;
  char s = '9';
  int i, j, k, u;
  if (a.size() == 1 && b.size() == 1 && a[0] == '0' && b[0] == '0') {
    cout << "OK";
  } else {
    if (a.size() != b.size()) {
      cout << "WRONG_ANSWER";
    } else {
      for (i = 0, j = 0; i < a.size(); i++) {
        if (a[i] != '0' && a[i] < s) {
          q[j] = a[i];
          s = q[j];
          k = i;
        }
      }
      a[k] = 'c';
      int y = a.size() - 1, e;
      j = 1, u = -1;
      while (y--) {
        char ss = '9';
        for (i = 0; i < a.size(); i++) {
          if (a[i] <= ss) {
            q[j] = a[i];
            ss = q[j];
            e = i;
          }
        }
        a[e] = 'c';
        j++;
      }
      for (j = 0; j < a.size(); j++) {
        if (b[j] == q[j]) {
          u++;
        } else {
          cout << "WRONG_ANSWER";
          return 0;
        }
      }
      if (u >= 0) {
        cout << "OK";
      }
    }
  }
  return 0;
}
