#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  string s;
  string m;
  cin >> s;
  bool f = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'W' && s[i + 1] == 'U' && s[i + 2] == 'B') {
      i += 2;
      if (f) m += ' ';
      f = 0;
    } else {
      m += s[i];
      f = 1;
    }
  }
  bool is = 0;
  for (int i = 0; i < m.size(); i++) {
    if (m[i] != ' ') {
      is = 1;
    }
    if (is) cout << m[i];
  }
  return 0;
}
