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