#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  size_t f = s.find("WUB");
  while (f != string::npos) {
    s.replace(f, 3, " ");
    f = s.find("WUB");
  }
  s.erase(0, s.find_first_not_of(' '));
  s.erase(s.find_last_not_of(' ') + 1);
  f = s.find("  ");
  while (f != string::npos) {
    s.replace(f, 2, " ");
    f = s.find("  ");
  }
  cout << s << "\n";
  return 0;
}
