#include <bits/stdc++.h>
using namespace std;
string n, m;
int cnt[10] = {0}, flag = 1;
int main() {
  cin >> n >> m;
  for (int i = 0; i < n.size(); i++) cnt[n[i] - '0']++;
  for (int i = 0; i < m.size(); i++) cnt[m[i] - '0']--;
  for (int i = 0; i < 10; i++)
    if (cnt[i]) flag = 0;
  int first = m[0];
  if (first == '0' && !(n == "0" && m == "0")) flag = 0;
  for (int i = 1; i < m.size(); i++) {
    if (m[i] != '0' && m[i] < first) flag = 0;
    if (i > 1 && m[i] < m[i - 1]) flag = 0;
  }
  if (flag)
    cout << "OK" << endl;
  else
    cout << "WRONG_ANSWER" << endl;
  return 0;
}
