#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ans;
  cin >> s >> ans;
  sort(s.begin(), s.end());
  if (s[0] == '0' && s.size() >= 2) {
    swap(s[0], s[1]);
  }
  if (s == ans)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
