#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n = 0;
  string a, b;
  cin >> a >> b;
  string c, d;
  for (long long i = 0; i < a.length(); i++) {
    if (a[i] == '0')
      n++;
    else
      c.push_back(a[i]);
  }
  sort(c.begin(), c.end());
  if (c.length() != 0) d.push_back(c[0]);
  while (n != 0) {
    d.push_back('0');
    n--;
  }
  for (long long i = 1; i < c.length(); i++) d.push_back(c[i]);
  if (d.length() == 1 && b.length() == 1 && d[0] == b[0]) {
    cout << "OK";
    return 0;
  }
  if (d == b)
    cout << "OK";
  else
    cout << "WRONG_ANSWER";
  return 0;
}
