#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int c[10];
  memset(c, 0, 10 * sizeof(int));
  for (int i = 0; i < (int)(s).size(); ++i) {
    ++c[s[i] - '0'];
  }
  string ans = "";
  if (s == "0") {
    ans = s;
  } else {
    for (int i = 1; i < 10; ++i) {
      if (c[i]) {
        ans += (char)(i + '0');
        --c[i];
        break;
      }
    }
    for (int i = 0; i < 10; ++i) {
      while (c[i]) {
        ans += (char)(i + '0');
        --c[i];
      }
    }
  }
  string t;
  cin >> t;
  cout << (ans == t ? "OK\n" : "WRONG_ANSWER\n");
}
