#include <bits/stdc++.h>
using namespace std;
int main() {
  string song;
  cin >> song;
  int index = 0;
  vector<string> words;
  string word = "";
  while (index < song.length()) {
    string sub = song.substr(index, 3);
    if (sub == "WUB") {
      index += 3;
      words.push_back(word);
      word = "";
    } else {
      word += song[index];
      index++;
    }
  }
  words.push_back(word);
  for (vector<string>::iterator it = words.begin(); it != words.end(); ++it) {
    if (*it != "") cout << *it << " ";
  }
  cout << endl;
  return 0;
}
