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