#include <bits/stdc++.h>
using namespace std;
string n, m;
int a[18], b[18], miao[18], sign, en[18];
int main() {
  cin >> n >> m;
  int len1 = n.size(), len2 = m.size();
  if (len1 != len2)
    printf("WRONG_ANSWER\n");
  else {
    bool flag = 0;
    for (int i = 0; i < len1; i++) {
      a[i] = n[i] - 48;
      miao[i] = b[i] = m[i] - 48;
    }
    sort(a, a + len1);
    sort(miao, miao + len2);
    for (int i = 0; i < len1; i++) {
      if (a[i] != miao[i]) {
        flag = 1;
        break;
      }
    }
    if (flag)
      printf("WRONG_ANSWER\n");
    else {
      for (int i = 0; i < len1; i++) {
        if (a[i]) {
          sign = i;
          break;
        }
      }
      en[0] = a[sign];
      int ga = 1;
      for (int i = 0; i < len1; i++) {
        if (i != sign) en[ga++] = a[i];
      }
      for (int i = 0; i < len1; i++) {
        if (en[i] != b[i]) {
          flag = 1;
          break;
        }
      }
      if (flag)
        printf("WRONG_ANSWER\n");
      else
        printf("OK\n");
    }
  }
  return 0;
}
