#include <bits/stdc++.h>
using namespace std;
char s[210];
int main() {
  while (scanf("%s", s) != EOF) {
    string ans;
    ans.clear();
    int len = strlen(s);
    int f = 0;
    for (int i = 0; i < len;) {
      if (i + 2 < len && s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B') {
        ans.push_back(' ');
        while (i + 2 < len && s[i] == 'W' && s[i + 1] == 'U' &&
               s[i + 2] == 'B') {
          i = i + 3;
        }
      } else {
        ans.push_back(s[i]);
        i++;
      }
    }
    int i = 0;
    while (ans[i] == ' ') i++;
    for (int j = i; j < ans.length(); j++) {
      cout << ans[j];
    }
    puts("");
  }
  return 0;
}
