#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, s1;
  int arr[100], a2[100];
  cin >> s >> s1;
  int flag = 0;
  if (s.size() != s1.size()) {
    cout << "WRONG_ANSWER";
    return 0;
  }
  for (int i = 0; i < s.size(); i++) {
    arr[i] = s[i] - '0';
    a2[i] = s1[i] - '0';
    if (arr[i] == 0) flag = 1;
  }
  sort(arr, arr + s.size());
  if (flag == 0) {
    for (int i = 0; i < s.size(); i++) {
      if (arr[i] != a2[i]) {
        cout << "WRONG_ANSWER";
        return 0;
      }
    }
    cout << "OK";
  } else {
    int i = 1;
    while ((arr[i] == arr[0]) && i < s.size()) i++;
    swap(arr[0], arr[i]);
    for (int i = 0; i < s.size(); i++) {
      if (arr[i] != a2[i]) {
        cout << "WRONG_ANSWER";
        return 0;
      }
    }
    cout << "OK";
  }
  return 0;
}
