#include <bits/stdc++.h>
using namespace std;
const int inf = INT_MAX;
const long long linf = LLONG_MAX;
const long long modn = (long long)1e9 + 7;
inline long long mod(long long x) { return x % modn; }
int main() {
  string str, str2;
  getline(cin, str);
  getline(cin, str2);
  sort(str.begin(), str.end());
  if (str[0] == '0') {
    int sz = str.size();
    for (int i = 1; i < sz; i++)
      if (str[i] != '0') {
        swap(str[0], str[i]);
        break;
      }
  }
  puts(!str.compare(str2) ? "OK" : "WRONG_ANSWER");
  return 0;
}
