#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  string s, g;
  cin >> s;
  int flag = 1;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B') {
      i += 2;
      if (!flag) {
        cout << " ";
      }
      continue;
    } else {
      flag = 0;
      cout << s[i];
    }
  }
}
