#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int flag = 1;
  for (int i = 0; str[i] != '\0'; i++) {
    if (str[i] == 'W' && str[i + 1] == 'U' && str[i + 2] == 'B') {
      i = i + 2;
      if (!flag) cout << " ";
      continue;
    } else
      flag = 0;
    cout << str[i];
  }
  return 0;
}
