#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string word;
  bool last = false;
  cin >> word;
  string result = "";
  int len;
  if (word[word.length() - 1] == 'B' && word[word.length() - 2] == 'U' &&
      word[word.length() - 3] == 'W') {
    len = word.length() - 3;
  } else {
    len = word.length() - 1;
  }
  for (int i = 0; i <= len; i++) {
    if (word[i] == 'W') {
      if (word[i + 1] == 'U') {
        if (word[i + 2] == 'B') {
          i += 2;
          if (last) {
            last = false;
            result += " ";
          }
        } else {
          result += word[i];
          last = true;
        }
      } else {
        result += word[i];
        last = true;
      }
    } else {
      result += word[i];
      last = true;
    }
  }
  cout << result;
}
