#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  char m[11], digit[10] = {'0'}, digitcount(0);
  scanf("%d%s", &n, &m);
  while (n != 0) {
    digit[digitcount++] = '0' + n % 10;
    n /= 10;
  }
  sort(digit, digit + digitcount);
  if (digit[0] == '0') {
    for (int i = 1; i < digitcount; ++i) {
      if (digit[i] != '0') {
        digit[0] = digit[i];
        digit[i] = '0';
        break;
      }
    }
  }
  if (strcmp(m, digit) == 0)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
