#include <bits/stdc++.h>
using namespace std;
int main() {
  int b, d, c, f = 0;
  string a, s;
  cin >> a >> s;
  b = a[0];
  c = 0;
  d = (a.length());
  for (int i = 0; i < d; i++) {
    f = a[i];
    f = f - '0';
    if (f == 0) {
      c++;
    }
  }
  for (int i = 0; i < d; i++) {
    for (int j = i + 1; j < d; j++) {
      if (a[j] < a[i]) {
        b = a[j];
        a[j] = a[i];
        a[i] = b;
      }
    }
  }
  if (c < d) {
    f = a[c];
    a[c] = a[0];
    a[0] = f;
  }
  if (a == s) {
    cout << "OK";
  } else {
    cout << "WRONG_ANSWER";
  }
  return 0;
}
