#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a;
  int c;
  c = a.find("WUB");
  while (c != -1) {
    a.replace(c, 3, " ");
    c = a.find("WUB");
  }
  cout << a << endl;
  return 0;
}
