#include <bits/stdc++.h>
using namespace std;
const int N = 10;
int digits[N];
inline int find_min(int start = 0) {
  for (int i = start; i < N; i++) {
    if (digits[i] > 0) {
      digits[i]--;
      return i;
    }
  }
  return -1;
}
int main() {
  string given, answer, correct;
  cin >> given >> answer;
  if (answer[0] == '0') {
    if (given[0] != '0') {
      cout << "WRONG_ANSWER" << endl;
      return 0;
    }
  }
  int length = given.length();
  for (int i = 0; i < length; i++) {
    digits[given[i] - '0']++;
  }
  int min = find_min(1);
  if (min != -1) {
    correct += ('0' + min);
  }
  while (true) {
    min = find_min();
    if (min == -1) {
      break;
    }
    correct += ('0' + min);
  }
  cout << (correct == answer ? "OK" : "WRONG_ANSWER") << endl;
  return 0;
}
