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