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