#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[11], b[11];
  scanf("%s%s", a, b);
  sort(a, a + strlen(a));
  int i = 0;
  while (a[i] == '0') i++;
  if (a[i] == '\0') i--;
  char tmp = a[0];
  a[0] = a[i];
  a[i] = tmp;
  if (strcmp(a, b) == 0)
    printf("OK");
  else
    printf("WRONG_ANSWER");
}
