#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  if (fopen("input.txt", "r")) {
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
  }
  string s;
  cin >> s;
  string s1;
  cin >> s1;
  vector<int> v;
  vector<int> v1;
  for (int i = 0; i < s.size(); i++) {
    v.push_back(s[i] - '0');
  }
  for (int i = 0; i < s1.size(); i++) {
    v1.push_back(s1[i] - '0');
  }
  sort(v.begin(), v.end());
  if (v[0] == 0) {
    for (int i = 1; i < v.size(); i++) {
      if (v[i] != 0) {
        int tmp = v[i];
        v[i] = v[0];
        v[0] = tmp;
        break;
      }
    }
  }
  if (v == v1)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
}
