#include <bits/stdc++.h>
using namespace std;
int const N = 1e5 + 2;
int n, m;
void solve() {
  string n, m;
  cin >> n >> m;
  sort((n).begin(), (n).end());
  if (n[0] == '0' && n.size() > 1) swap(n[0], n[1]);
  if (n == m)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  solve();
}
