#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[100], t[100];
  scanf("%s%s", s, t);
  sort(s, s + strlen(s));
  if (strlen(s) != 1)
    if (s[0] == '0') swap(s[0], s[1]);
  if (!strcmp(s, t))
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
}
