#include <bits/stdc++.h>
const int N = 3;
using namespace std;
int main() {
  string str, str2;
  int n = 0;
  cin >> str;
  cin >> str2;
  sort(str.begin(), str.end());
  if (str[0] == '0') {
    for (int i = 1; i < str.length(); ++i) {
      if (str[i] != '0') {
        char temp;
        temp = str[i];
        str[i] = str[0];
        str[0] = temp;
        break;
      }
    }
  }
  for (int i = 0; i < str2.length(); ++i) {
    if (str2[i] != '0') {
      n = i;
      break;
    }
  }
  if (str == str2)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
