#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int MAX = 1000005;
int SetBit(int n, int x) { return n | (1 << x); }
int ClearBit(int n, int x) { return n & ~(1 << x); }
int ToggleBit(int n, int x) { return n ^ (1 << x); }
bool CheckBit(int n, int x) { return (bool)(n & (1 << x)); }
int main(void) {
  int len, i, pos;
  string a, b;
  while (cin >> a >> b) {
    string ans;
    if (a == "0")
      ans = "0";
    else {
      sort(a.begin(), a.end());
      if (a[0] == '0') {
        len = a.length();
        pos = 0;
        string x, y, z;
        for (i = 0; i < len; i++) {
          if (a[i] == '0')
            y += "0";
          else {
            x.push_back(a[i]);
            pos = i;
            break;
          }
        }
        for (i = pos + 1; i < len; i++) z.push_back(a[i]);
        ans = x + y + z;
      } else
        ans = a;
    }
    if (ans == b)
      cout << "OK"
           << "\n";
    else
      cout << "WRONG_ANSWER"
           << "\n";
  }
  return 0;
}
