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