#include <bits/stdc++.h>
using namespace std;
const long long N = 2e2 + 9;
string s;
long long n;
vector<string> v;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cerr << "‌";
  cin >> s;
  n = s.size();
  string first = "";
  v.push_back(first);
  for (int i = 0; i < (n); i++) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B')
      i += 2, v.push_back(first);
    else
      (*--v.end()).push_back(s[i]);
  }
  for (auto it : v)
    if (it.size()) cout << it << ' ';
}
