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