#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  vector<char> v;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B') {
      v.push_back(' ');
      i += 2;
      continue;
    } else {
      v.push_back(s[i]);
    }
  }
  while (v[0] == ' ') {
    if (v[0] == ' ') {
      v.erase(v.begin());
    }
  }
  for (int i = 0; i < v.size(); i++) {
    if (v[i] == ' ' && v[i + 1] == ' ') {
      i++;
    }
    cout << v[i] << "";
  }
}
