#include <bits/stdc++.h>
const int INF = 0x3f3f3f3f;
const double PI = acos(-1.0);
const int MAX = 1e5 + 10;
const long long mod = 1e9 + 7;
using namespace std;
char str[100], str2[100];
char str3[100];
int main() {
  while (scanf("%s%s", str, str2) != EOF) {
    int n = strlen(str);
    sort(str, str + n);
    char temp = 'a';
    for (int i = 0; i < n; i++) {
      if (str[i] != '0') {
        temp = str[i];
        str[i] = 'a';
        break;
      }
    }
    int index = 0;
    if (temp != 'a') {
      str3[0] = temp;
      index++;
    }
    for (int i = 0; i < n; i++) {
      if (str[i] != 'a') {
        str3[index++] = str[i];
      }
    }
    str3[index] = '\0';
    if (strcmp(str2, str3) == 0)
      printf("OK\n");
    else
      printf("WRONG_ANSWER\n");
  }
  return 0;
}
