#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1 = "WUB", s, s2 = " ", z;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    s2 = s.substr(i, 3);
    if (s2 == s1) {
      if (z != " ") z += " ";
      i += 2;
    } else
      z += s[i];
  }
  cout << z << endl;
}
