#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  long long int n = s.size();
  string res = "";
  string st = "";
  for (long long int i = 0; i < n; i++) {
    if (s[i] == 'W') {
      string a = s.substr(i, 3);
      if (a == "WUB") {
        if (res[res.size() - 1] == ' ') {
          i = i + 2;
          continue;
        }
        res = res + " ";
        i = i + 2;
      } else {
        res = res + s[i];
      }
    } else {
      res = res + s[i];
    }
  }
  cout << res << endl;
}
