#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[15], b[15];
  int n, i, j;
  cin >> a;
  cin >> b;
  n = strlen(a);
  sort(a, a + n);
  if (a[0] == '0' && n != 1)
    for (i = 0; i < n; i++)
      if (a[i] != '0') {
        swap(a[0], a[i]);
        break;
      }
  if (!strcmp(a, b))
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
