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