#include <bits/stdc++.h>
using namespace std;
int main() {
  char n[10], ans[10];
  int l, i;
  char c;
  cin >> n >> ans;
  l = strlen(n);
  sort(n + 0, n + l);
  for (i = 0; i < l; i++)
    if (n[i] != '0' || i + 1 >= l) break;
  c = n[i];
  n[i] = n[0];
  n[0] = c;
  if (strcmp(n, ans) == 0)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
