#include <bits/stdc++.h>
using namespace std;
const int oo = 1e9 + 1;
int main() {
  string s, k;
  cin >> s >> k;
  sort(s.begin(), s.end());
  if (s[0] == '0' && s.length() != 1) swap(s[1], s[0]);
  if (s == k)
    cout << "OK";
  else
    cout << "WRONG_ANSWER";
}
