#include <bits/stdc++.h>
using namespace std;
vector<int> values;
const int inf = 100000005;
int main() {
  string t, s, temp = "";
  int i, count = 0;
  cin >> t;
  for (i = 0; i < t.length(); i++) {
    if (t[i] == 'W' && t[i + 1] == 'U' && t[i + 2] == 'B' && i != 0) {
      if (count != 0) {
        s += temp;
        s += " ";
        count = 0;
      }
      temp = "";
      i++;
      i++;
    } else if (t[i] == 'W' && t[i + 1] == 'U' && t[i + 2] == 'B' && i == 0) {
      i += 2;
    } else {
      temp = temp + t[i];
      count++;
    }
  }
  if (temp != "") {
    s += temp;
  }
  cout << s << endl;
  return 0;
}
