#include <bits/stdc++.h>
using namespace std;
int n, m, k;
char a[1000000], b[100000];
int la, lb;
int dig[10];
int s;
int main() {
  cin >> a;
  cin >> b;
  la = strlen(a);
  lb = strlen(b);
  for (int i = 0; i < la; i++) dig[a[i] - '0']++;
  la = 0;
  for (int i = 1; i < 10; i++)
    if (dig[i]) {
      a[la++] = i + '0';
      dig[i]--;
      break;
    }
  for (int i = 0; i < 10; i++)
    if (dig[i]) {
      a[la++] = i + '0';
      dig[i]--;
      i--;
    }
  if (strcmp(a, b) == 0)
    cout << "OK";
  else
    cout << "WRONG_ANSWER";
  return 0;
}
