#include <bits/stdc++.h>
using namespace std;
const long long N = 2 * 1e3 + 7;
const long double pi = 3.14159265359;
const int INF = 1e20 + 7;
const double eps = 1e-9;
const int xi[4] = {-1, 0, +1, 0};
const int yj[4] = {0, +1, 0, -1};
const int xxi[4] = {+1, 0, -1, 0};
const int yyj[4] = {0, -1, 0, +1};
string s1, s2;
int x;
int main() {
  ios_base::sync_with_stdio();
  cin.tie(0);
  cout.tie(0);
  srand(time(0));
  ;
  cin >> s1 >> s2;
  string str = s1;
  sort(str.begin(), str.end());
  for (int i = 0; i < str.size(); i++) {
    if (str[i] != '0') {
      x = i;
      break;
    }
  }
  if (str[0] == '0') {
    swap(str[0], str[x]);
  }
  if (str == s2) {
    cout << "OK";
  } else {
    cout << "WRONG_ANSWER";
  }
}
