#include <bits/stdc++.h>
using namespace std;
string cut(string s) {
  string s1 = "";
  int n = 0, m = 0;
  if (s[0] == ' ') {
    n++;
  }
  if (s[s.size() - 1] == ' ') {
    m++;
  }
  for (int i = n; i < s.size() - m; i++) {
    s1 += s[i];
  }
  return s1;
}
int main() {
  string s, s1;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B') {
      if (s1[s1.size() - 1] != ' ') {
        s1 += ' ';
      }
      i += 2;
      continue;
    }
    s1 += s[i];
  }
  cout << cut(s1);
}
