#include <bits/stdc++.h>
using namespace std;
int num[15];
int main() {
  bool flag = true;
  memset(num, 0, sizeof(num));
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) num[s[i] - '0']++;
  string ans;
  cin >> ans;
  if (ans.size() != s.size()) flag = false;
  int first;
  for (first = 1; first <= 9; first++)
    if (num[first] != 0) break;
  num[first]--;
  if (ans[0] - '0' != first) flag = false;
  int cur = 0;
  for (int i = 1; i < ans.size(); i++) {
    while (num[cur] == 0) cur++;
    if (ans[i] - '0' == cur)
      num[cur]--;
    else
      flag = false;
  }
  if (s == "0" && ans == "0") flag = true;
  if (flag)
    puts("OK");
  else
    puts("WRONG_ANSWER");
  return 0;
}
