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