#include <bits/stdc++.h>
using namespace std;
const int N = 100000 + 10;
const int INF = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
int main() {
  string a, b;
  cin >> a >> b;
  sort(a.begin(), a.end());
  if (a.size() > 1 && a[0] == '0') {
    int i = 0;
    while (a[i] == '0') ++i;
    a[0] = a[i];
    a[i] = '0';
  }
  if (a == b)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
