#include <bits/stdc++.h>
using namespace std;
int main() {
  string m, n;
  cin >> m >> n;
  if (m == "0") {
    if (n == "0")
      cout << "OK";
    else
      cout << "WRONG_ANSWER";
  } else {
    if (m.length() != n.length())
      cout << "WRONG_ANSWER";
    else {
      int A[m.length()];
      string t = "OK";
      for (int i = 0; i < m.length(); i++) A[i] = m[i] - 48;
      sort(A, A + m.length());
      int j = 0;
      while (A[j] == 0) j++;
      if (n[0] - 48 != A[j]) t = "WRONG_ANSWER";
      for (int i = 0; i < j; i++) {
        if (n[i + 1] != 48) t = "WRONG_ANSWER";
      }
      for (int i = j + 1; i < n.length(); i++) {
        if (n[i] - 48 != A[i]) t = "WRONG_ANSWER";
      }
      cout << t;
    }
  }
}
