#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  int i, j, l = a.size();
  if (a == "0") {
    if (b == "0") {
      cout << "OK" << endl;
    } else
      cout << "WRONG_ANSWER" << endl;
    return 0;
  }
  for (i = 0; i < l; i++) {
    for (j = i + 1; j < l; j++) {
      if (a[j] < a[i]) swap(a[i], a[j]);
    }
  }
  if (a[0] == '0') swap(a[0], a[1]);
  if (a == b)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
}
