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