#include <bits/stdc++.h>
using namespace std;
string s, t;
int p = -1, mn = 11;
int main() {
  cin >> s >> t;
  int len = s.size();
  for (int i = 0; i < len; i++)
    if (s[i] != '0' && s[i] - '0' < mn) {
      mn = s[i] - '0', p = i;
    }
  if (p != -1) {
    s.erase(p, 1);
    sort(s.begin(), s.end());
    s = char('0' + mn) + s;
  }
  if (s != t)
    cout << "WRONG_ANSWER" << '\n';
  else
    cout << "OK" << '\n';
  return 0;
}
