#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int start_pos = 0;
  string from = "WUB";
  string to = " ";
  while ((start_pos = s.find(from, start_pos)) != std::string::npos) {
    s.replace(start_pos, from.length(), to);
    start_pos += to.length();
  }
  cout << s << endl;
  return 0;
}
