#include <bits/stdc++.h>
using namespace std;
vector<long long> v, v1;
vector<long long>::iterator it;
vector<long long> d[30001];
int main() {
  string a, b;
  long long c = 0, d = 0;
  cin >> a;
  cin >> b;
  long long m = a.length();
  long long n = b.length();
  sort(a.begin(), a.end());
  for (long long i = 0; i < a.length(); i++) {
    if (a[i] != '0') {
      swap(a[i], a[0]);
      break;
    }
  }
  if (a == b)
    cout << "OK";
  else
    cout << "WRONG_ANSWER";
}
