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