#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  bool flag = true;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'W' and s[i + 1] == 'U' and s[i + 2] == 'B') {
      i += 2;
      if (flag == true) flag = false, cout << " ";
    } else {
      flag = true;
      cout << s[i];
    }
  }
  return 0;
}
