#include <bits/stdc++.h>
using namespace std;
int a[10];
int main() {
  string s, t, ans = "";
  cin >> s >> t;
  if (s == "0" && t == "0") {
    cout << "OK" << endl;
    return 0;
  }
  for (int i = 0; i < s.length(); i++) a[s[i] - '0']++;
  for (int i = 1; i <= 9; i++)
    if (a[i] > 0) {
      ans = char(i + '0');
      a[i]--;
      for (int j = 0; j <= 9; j++)
        for (int k = 0; k < a[j]; k++) ans += char(j + '0');
      break;
    }
  if (ans == t)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
