#include <bits/stdc++.h>
using namespace std;
int countA[10];
int countB[10];
int main() {
  string A, B;
  cin >> A >> B;
  sort(A.begin(), A.end());
  int a = 0, first = 1;
  for (int i = 0; i < A.size(); i++)
    if (A[i] != '0') {
      a = a * 10 + (A[i] - '0');
      if (first) {
        for (int j = 0; j < A.size(); j++)
          if (A[j] == '0') a = a * 10;
        first = 0;
      }
    }
  ostringstream oss;
  oss << a;
  A = oss.str();
  if (B != A)
    cout << "WRONG_ANSWER" << endl;
  else
    cout << "OK" << endl;
  return 0;
}
