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