#include <bits/stdc++.h>
using namespace std;
const int INF = INT_MAX;
const unsigned long long mod = 1e5;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  string s, ans = "";
  cin >> s;
  int i = 0;
  while (i + 2 < s.size()) {
    if (s[i] != 'W' || s[i + 1] != 'U' || s[i + 2] != 'B') {
      while (i < s.size() &&
             !(s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B'))
        ans += s[i], i++;
      ans += " ";
    } else if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B')
      i += 3;
  }
  while (i < s.size()) ans += s[i], i++;
  cout << ans << "\n";
  return 0;
}
