#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2, s;
  int cnt, i;
  while (cin >> s1 >> s2) {
    sort(s1.begin(), s1.end());
    for (s.clear(), cnt = i = 0; i < s1.size() && s1[i] == '0'; ++cnt, ++i)
      ;
    if (i < s1.size()) s += s1[i++];
    while (cnt--) s += '0';
    for (; i < s1.size(); s += s1[i], ++i)
      ;
    if (s == s2)
      cout << "OK\n";
    else
      cout << "WRONG_ANSWER\n";
  }
}
