#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int f = 0, repeat = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B' && f == 0) {
      s.erase(i, 3);
      i = i - 1;
    } else if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B' && f == 1) {
      s.erase(i, 3);
      i = i - 1;
      if (repeat == 0) {
        i = i + 1;
        s.insert(i, " ");
      }
      repeat = 1;
    } else {
      f = 1;
      repeat = 0;
    }
  }
  cout << s;
  return 0;
}
