#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j = 0, n, arr[10] = {0};
  string m;
  char t[15];
  cin >> n >> m;
  while (n >= 0) {
    arr[n % 10]++;
    n /= 10;
    if (n == 0) break;
  }
  i = 1;
  while (i < 10 && arr[i] == 0) i++;
  if (i < 10) {
    t[j] = (char)(i + 48);
    j++;
    arr[i]--;
    while (arr[0]--) {
      t[j] = '0';
      j++;
    }
    while (i < 10) {
      while (arr[i]--) {
        t[j] = (char)(i + 48);
        j++;
      }
      i++;
    }
  } else {
    while (arr[0]--) {
      t[j] = '0';
      j++;
    }
  }
  if (j == m.length()) {
    int f = 0;
    for (i = 0; i < j; i++) {
      if (m[i] != t[i]) {
        f++;
        break;
      }
    }
    if (f == 0)
      cout << "OK\n";
    else
      cout << "WRONG_ANSWER\n";
  } else
    cout << "WRONG_ANSWER\n";
  return 0;
}
