#include <bits/stdc++.h>
using namespace std;
const int N = 110;
const int M = 2000010;
const int mod = 1e9 + 9;
const int inf = 0x3f3f3f3f;
const double eps = 1e-6;
using namespace std;
int cnt[11];
char n[11], m[11];
int main() {
  scanf("%s", n);
  for (int i = 0; n[i]; i++) cnt[n[i] - '0']++;
  int t = 0;
  for (int i = 1; i <= 9; i++) {
    if (cnt[i]) {
      t = t * 10 + i;
      cnt[i]--;
      break;
    }
  }
  for (int i = 0; i < 10; i++) {
    for (int j = 0; j < cnt[i]; j++) t = t * 10 + i;
  }
  scanf("%s", m);
  int T = 0;
  for (int i = 0; m[i]; i++) T = T * 10 + (m[i] - '0');
  if (strlen(n) != strlen(m)) T = -1;
  puts((T == t) ? "OK" : "WRONG_ANSWER");
  return 0;
}
