#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  string ans = "";
  for (int i = 0; i < s.size();) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B' && i + 2 < s.size())
      i = i + 3;
    else if (ans.size() > 0 && ans[ans.size() - 1] != ' ' && s[i - 3] == 'W' &&
             s[i - 2] == 'U' && s[i - 1] == 'B')
      ans += " ";
    else {
      ans += s[i];
      i++;
    }
  }
  cout << ans << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  solve();
  return 0;
}
