#include <bits/stdc++.h>
using namespace std;
int main() {
  string cad1, cad2;
  getline(cin, cad1);
  getline(cin, cad2);
  sort(cad1.begin(), cad1.end());
  int k = 0;
  char aux;
  if ((int)cad1.size() > 1) {
    if (cad1[0] == '0') {
      aux = cad1[0];
      cad1[0] = cad1[1];
      cad1[1] = aux;
    }
  }
  if (cad2 == cad1) {
    cout << "OK";
  } else {
    cout << "WRONG_ANSWER";
  }
  return 0;
}
