#include <bits/stdc++.h>
using namespace std;
char A[12], B[12];
string s, t, ans;
int n, freq[10];
void fact() {
  for (int i = 1; i <= 9; i++)
    if (freq[i]) {
      freq[i]--;
      ans += (char)(i + '0');
      break;
    }
  for (int i = 0; i < freq[0]; i++) ans += '0';
  for (int i = 1; i <= 9; i++)
    for (int j = 0; j < freq[i]; j++) ans += (char)(i + '0');
}
int main() {
  scanf("%s%s", &A, &B);
  s = A;
  t = B;
  n = s.length();
  for (int i = 0; i < n; i++) freq[s[i] - '0']++;
  fact();
  if (ans == t)
    printf("OK");
  else
    printf("WRONG_ANSWER");
}
