#include <bits/stdc++.h>
using namespace std;
int z[10];
int main() {
  int i = 0, A, B, a, n, tmp;
  string sB;
  cin >> a >> sB;
  if (a == 0) z[0] = 1;
  while (a > 0) {
    z[a % 10]++;
    a /= 10;
  }
  A = 0;
  for (i = 1; i < 10; i++)
    if (z[i]) {
      A = i;
      z[i]--;
      break;
    }
  for (i = 0; i < 10; i++)
    while (z[i]) {
      A = A * 10 + i;
      z[i]--;
    }
  i = 0;
  B = 0;
  while (sB[i]) {
    B = B * 10 + (sB[i] - '0');
    i++;
  }
  if (A == B) {
    if (A == 0 && (sB[1] == 0))
      cout << "OK" << endl;
    else if (sB[0] != '0')
      cout << "OK" << endl;
    else
      cout << "WRONG_ANSWER" << endl;
  } else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
