#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s, k;
  cin >> s >> k;
  if (s == "0" && k == "0") {
    cout << "OK";
    return 0;
  }
  long long int p = s.length();
  long long int A[p];
  for (long long int j = 0; j < p; j++) A[j] = int(s[j]) - 48;
  sort(A, A + p);
  long long int i = 0;
  while (A[i++] == 0) {
  }
  if (A[i - 1] != k[0] - 48) {
    cout << "WRONG_ANSWER";
    return 0;
  }
  long long int t = 1;
  for (long long int j = 0; j < p; j++)
    if (j != i - 1) {
      if (A[t++] != k[j] - 48) {
        cout << "WRONG_ANSWER";
        return 0;
      }
    }
  cout << "OK";
  return 0;
}
