#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  a.clear();
  b.clear();
  cin >> a >> b;
  string str;
  str.clear();
  string aa = "";
  int index = 0;
  char it = a[0];
  for (int i = 0; i < a.size(); i++)
    if (a[i] <= it && a[i] != '0') {
      index = i;
      it = a[i];
    }
  for (int i = 0; i < a.size(); i++) {
    if (i == index) continue;
    aa += a[i];
  }
  sort(aa.begin(), aa.end());
  str = it + aa;
  if (str == b)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
}
