#include <bits/stdc++.h>
using namespace std;
long long power(long x, long n) {
  if (n == 0) return 1;
  if (n == 1) return x;
  long n2 = n / 2;
  long long po = power(x, n2);
  if (n % 2) return po * po * x;
  return po * po;
}
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  a %= b;
  return gcd(b, a);
}
class BCorrectSolution {
 public:
  void solve(std::istream &cin, std::ostream &cout) {
    string s, second;
    int SS;
    cin >> s >> second;
    int l = s.length(), i, f = -1;
    sort(s.begin(), s.end());
    for (i = 0; i < l; i++) {
      if (s[i] > '0') {
        f = i;
        break;
      }
    }
    int ans = 0;
    if (f >= 0) ans = s[f] - '0';
    for (i = 0; i < l; i++) {
      if (i != f) {
        ans = ans * 10 + s[i] - '0';
      }
    }
    l = second.length();
    SS = 0;
    for (i = 0; i < l; i++) SS *= 10, SS += (second[i] - '0');
    if (second.length() == s.length() && ans == SS)
      cout << "OK\n";
    else
      cout << "WRONG_ANSWER\n";
  }
};
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  BCorrectSolution solver;
  std::istream &in(std::cin);
  std::ostream &out(std::cout);
  solver.solve(in, out);
  return 0;
}
