#include <bits/stdc++.h>
using namespace std;
long double pi = 3.1415926536;
int main() {
  string a, b;
  cin >> a >> b;
  sort(a.begin(), a.end());
  if (a[0] == '0' && a.length() > 1) {
    int i = 1;
    while (a[i] == 0 && i < (int)a.length()) {
      i++;
    }
    char temp = a[0];
    a[0] = a[i];
    a[i] = temp;
  }
  if (a.compare(b) == 0)
    cout << "OK";
  else
    cout << "WRONG_ANSWER";
}
