#include <bits/stdc++.h>
using namespace std;
bool greatter(int a, int b) { return a > b; }
template <class Container>
void splitString(const string &str, Container &cont) {
  istringstream iss(str);
  copy(istream_iterator<string>(iss), istream_iterator<string>(),
       back_inserter(cont));
}
int main() {
  string s;
  cin >> s;
  while (s.find("WUB") != string::npos) {
    int ind = s.find("WUB");
    s.replace(ind, 3, "   ");
  }
  vector<string> vs;
  splitString(s, vs);
  for (auto x : vs) cout << x << " ";
}
