#include <bits/stdc++.h>
using namespace std;
int a[10];
int main() {
  string s, t;
  cin >> s >> t;
  int x = s.length();
  for (int i = 0; i < x; i++) a[i] = s[i] - '0';
  sort(a, a + x);
  if (a[0] == 0) {
    for (int i = 1; i < x; i++)
      if (a[i] > 0) {
        swap(a[i], a[0]);
        break;
      }
  }
  for (int i = 0; i < x; i++) s[i] = a[i] + '0';
  if (t == s)
    cout << "OK";
  else
    cout << "WRONG_ANSWER";
  return 0;
}
