#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, k, l, a, v, b, n, m;
  string s;
  while (cin >> s) {
    k = 0;
    j = 0;
    l = s.size();
    for (i = 0; i < l; i++) {
      if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B') {
        i = i + 2;
        if (k > 0) {
          if (j == 1) cout << " ";
          j = 0;
        }
      } else {
        cout << s[i];
        j = 1;
      }
      k = 1;
    }
  }
}
