#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int mark[10];
int main() {
  string a, b;
  cin >> a >> b;
  for (int i = 0; i < a.size(); i++) mark[a[i] - '0']++;
  if (a.size() != b.size()) {
    cout << "WRONG_ANSWER";
    return 0;
  }
  for (int i = 1; i < 10; i++)
    if (mark[i]) {
      v.push_back(i);
      mark[i]--;
      break;
    }
  for (int i = 0; i < 10; i++) {
    while (mark[i]) v.push_back(i), mark[i]--;
  }
  for (int i = 0; i < a.size(); i++)
    if (v[i] != b[i] - '0') {
      cout << "WRONG_ANSWER";
      return 0;
    }
  cout << "OK";
}
