#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  s += "WUB";
  int l = s.length();
  int i = 0, flag = 0;
  while (i < l - 2) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B') {
      s.erase(i, 3);
      if (i != 0 && flag == 1) cout << " ";
      flag = 0;
    } else {
      flag = 1;
      cout << s[i];
      i++;
    }
    l = s.length();
  }
  return 0;
}
