#include <bits/stdc++.h>
using namespace std;
string str1, str2, all;
int main() {
  cin >> str1 >> str2;
  sort(str1.begin(), str1.end());
  if (str1 == "0") {
    if (str1 == str2)
      cout << "OK";
    else
      cout << "WRONG_ANSWER";
    return 0;
  }
  int tmp = 0;
  while (str1[tmp] == '0') tmp++;
  all = str1[tmp];
  for (int i = 0; i < tmp; i++) all += str1[i];
  for (int i = tmp + 1; i < str1.length(); i++) all += str1[i];
  if (all == str2)
    cout << "OK";
  else
    cout << "WRONG_ANSWER";
  return 0;
}
