#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  string s1, s2, s3;
  cin >> s1;
  cin >> s2;
  sort(s1.begin(), s1.end());
  int i = 0;
  int c = 0;
  if (s1.size() > 1) {
    while (s1[i] == '0') {
      s1.erase(i, 1);
      c++;
      i++;
    }
    s3 += s1[0];
    s1.erase(0, 1);
    for (i = 1; i <= c; i++) s3 += '0';
    s3 += s1;
  } else
    s3 = s1;
  if (s3 == s2)
    cout << "OK\n";
  else
    cout << "WRONG_ANSWER\n";
  return 0;
}
