#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f3f3f3f3f;
long long power(long long a, long long b) {
  long long res = 1;
  while (b != 0) {
    if (b & 1) {
      res *= a;
    }
    a = (a * a);
    b = (b / 2);
  }
  return res;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long i, j, k, l, n, m, t;
  t = 1;
  while (t--) {
    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;
        }
      }
    }
    printf(strcmp(m, digit) == 0 ? "OK\n" : "WRONG_ANSWER\n");
    return 0;
  }
  return 0;
}
