#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int N = (int)S.length();
  string T;
  cin >> T;
  int M = (int)S.length();
  if (S == "0") {
    if (T == "0")
      cout << "OK\n";
    else
      cout << "WRONG_ANSWER\n";
    return 0;
  }
  if (N != M) return cout << "WRONG_ANSWER\n", 0;
  string W;
  int p;
  for (int i = 0; i < N; ++i)
    for (int j = 0; j < N; ++j)
      if (S[i] < S[j]) swap(S[i], S[j]);
  for (int i = 0; i < N; ++i)
    if (S[i] > '0') {
      p = i;
      break;
    }
  W = S[p];
  for (int i = 0; i < N; ++i)
    if (i != p) W += S[i];
  if (W == T)
    cout << "OK\n";
  else
    cout << "WRONG_ANSWER\n";
  return 0;
}
