#include <bits/stdc++.h>
using namespace std;
string s, t, ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> s >> t;
  sort(s.begin(), s.end());
  bool p = false;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '0') {
      ans += '0';
    } else {
      if (p) {
        ans += s[i];
      } else {
        p = true;
        ans = s[i] + ans;
      }
    }
  }
  cout << (ans == t ? "OK" : "WRONG_ANSWER");
}
