#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  while (t--) {
    vector<int> a;
    string s, ans;
    cin >> s >> ans;
    string order = s;
    sort(order.begin(), order.end());
    string minimum, zero;
    int i = 0;
    while (i < (int)order.size() && order[i] == '0') {
      zero += '0';
      i++;
    }
    if (i < (int)order.size()) minimum += order[i];
    minimum += zero;
    i++;
    while (i < (int)order.size()) minimum += order[i++];
    if (minimum == ans)
      cout << "OK" << endl;
    else
      cout << "WRONG_ANSWER" << endl;
  }
  return 0;
}
