#include <bits/stdc++.h>
using namespace std;
string strwork(string str) {
  while (1) {
    int found = str.find("WUB");
    int windex;
    if (found == string::npos) {
      break;
    }
    if (found == 0) {
      while (found == 0) {
        str.erase(0, 3);
        found = str.find("WUB");
      }
    } else {
      windex = found;
      while (found == windex) {
        str.erase(windex, 3);
        found = str.find("WUB");
      }
      str.insert(windex, " ");
    }
  }
  return str;
}
int main() {
  ios::sync_with_stdio(false);
  string str, res;
  cin >> str;
  res = strwork(str);
  cout << res << endl;
  return 0;
}
