#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string c = s;
  long long l = s.size(), j = 3;
  if (l < 3) {
    cout << s;
    return 0;
  }
  for (int i = 3; i < l; i++) {
    if (j > 2 && c[j - 3] == 'W' && c[j - 2] == 'U' && c[j - 1] == 'B') {
      c[j - 3] = ' ';
      j -= 2;
    }
    c[j] = s[i];
    j++;
  }
  if (j > 2 && c[j - 3] == 'W' && c[j - 2] == 'U' && c[j - 1] == 'B') j -= 3;
  int i = 0;
  while (c[i] == ' ') i++;
  for (; i < j; i++) cout << c[i];
  return 0;
}
