#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t = "";
  cin >> s;
  int n = s.length();
  string k = "WUB";
  bool b;
  for (int i = 0; i < n; i++) {
    b = 1;
    for (int j = 0; j < 3; j++) {
      if (s[i + j] != k[j]) {
        b = 0;
        break;
      }
    }
    if (!b) {
      t.push_back(s[i]);
    } else {
      if (t != "") cout << t << " ";
      t = "";
      i += 2;
    }
  }
  cout << t;
  return 0;
}
