#include <bits/stdc++.h>
using namespace std;
int main() {
  char num[15];
  string a, ans, st = "";
  int k = 0;
  cin >> a >> ans;
  for (int i = 0; i < a.size(); i++) num[i] = a[i];
  sort(num, num + a.size());
  for (int i = 0; i < a.size(); i++)
    if (num[i] != '0') {
      k = i;
      break;
    }
  st += num[k];
  for (int i = 0; i < k; i++) st += '0';
  for (int i = k + 1; i < a.size(); i++) st += num[i];
  if (st == ans)
    cout << "OK";
  else
    cout << "WRONG_ANSWER";
  return 0;
}
