#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  string n, m;
  cin >> n >> m;
  int cn = 0;
  char mch = 'Z';
  int cn_m = 0;
  for (int i = 0; i < (int)(n.size()); i++) {
    if (n[i] < mch && n[i] != '0')
      mch = n[i], cn_m = 1;
    else if (n[i] == mch)
      cn_m++;
    if (n[i] == '0') cn++;
  }
  sort((n).begin(), (n).end());
  string nw = "";
  if (mch != 'Z') nw += mch;
  for (int i = 0; i < (int)(cn); i++) nw += '0';
  for (int i = cn + 1; i < n.size(); i++) nw += n[i];
  if (nw == m)
    cout << "OK" << '\n';
  else
    cout << "WRONG_ANSWER" << '\n';
  return 0;
}
