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