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