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