#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cout << *it << " = " << a << endl;
  err(++it, args...);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    string s;
    cin >> s;
    s += "WUB";
    long long flag = 0;
    for (long long i = 0; i < s.length(); i++) {
      if (s[i] == 'W' && s[i + 1] == 'U' & s[i + 2] == 'B') {
        i += 2;
        if (flag) cout << " ";
        flag = 0;
      } else {
        cout << s[i];
        flag = 1;
      }
    }
  }
}
