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