#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int all = 0;
  int flag = 0;
  int num = s.size();
  for (int i = 0; i < num; i++) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B' && i <= num - 2) {
      if (all != 0 && flag == 0) {
        cout << " ";
        flag = 1;
      }
      i += 2;
    } else {
      cout << s[i];
      all++;
      flag = 0;
    }
  }
  cout << endl;
  return 0;
}
