#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n, j = 0, l = 1, d = 1;
  n = s.length();
  char a[n];
  for (int i = 0; i < n; i++) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B') {
      d = 0;
      i = i + 2;
      continue;
    } else {
      if (d == 0) {
        a[j] = ' ';
        d++;
        j++;
      }
      a[j] = s[i];
      j++;
    }
  }
  for (int i = 0; i < j; i++) {
    cout << a[i];
  }
}
