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