#include <bits/stdc++.h>
using namespace std;
int N, T;
char str[15], temp[15];
int main() {
  int i, j, k;
  scanf("%s%s", str, temp);
  i = strlen(str);
  sort(str, str + i);
  if (str[0] == '0') {
    do {
      if (str[0] != '0') break;
    } while (next_permutation(str, str + i));
  }
  if (strcmp(str, temp) == 0)
    printf("OK\n");
  else
    printf("WRONG_ANSWER\n");
  scanf(" ");
}
