#include <bits/stdc++.h>
using namespace std;
int a[1000];
int b[100];
int main() {
  string x, y;
  cin >> x >> y;
  if (x[0] == '0' && y[0] == '0' && x.size() == y.size()) {
    cout << "OK" << endl;
    return 0;
  }
  sort(x.begin(), x.end());
  int i;
  for (i = 0; i < x.size(); i++)
    if (x[i] != '0') break;
  swap(x[0], x[i]);
  if (x == y)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
}
