#include <bits/stdc++.h>
using namespace std;
int main() {
  string str, result = "";
  string subString = "WUB";
  cin >> str;
  int loc = 0;
  loc = str.find(subString, 0);
  while (loc != -1) {
    str.erase(loc, 3);
    if (loc > 0) {
      string s = str.substr(0, loc);
      str.erase(0, s.length());
      result += s + " ";
    }
    loc = str.find(subString, 0);
  }
  result += str;
  cout << result << endl;
  return 0;
}
