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