#include <bits/stdc++.h>
using namespace std;
using lli = unsigned long long int;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  string s1, s2;
  cin >> s1 >> s2;
  sort(s1.begin(), s1.end());
  if (s1[0] != '0') {
    if (s1 == s2)
      cout << "OK";
    else
      cout << "WRONG_ANSWER";
  } else {
    char k = s1[0];
    for (int i = 0; i < s1.size(); i++) {
      if (s1[i] != '0') {
        s1[0] = s1[i];
        s1[i] = k;
        break;
      }
    }
    if (s1 == s2)
      cout << "OK";
    else
      cout << "WRONG_ANSWER";
  }
}
