#include <bits/stdc++.h>
using namespace std;
int main() {
  char m[201], s[201], r[201];
  int i = 0, j = 0;
  cin >> m;
  while (m[i] != '\0') {
    if (m[i] == 'W' && m[i + 1] == 'U' && m[i + 2] == 'B') {
      s[j] = '+';
      j++;
      i += 3;
    } else {
      s[j] = m[i];
      j++;
      i++;
    }
  }
  s[j] = '\0';
  i = 0;
  j = 0;
  while (s[i] != '\0') {
    while (s[i] == '+') {
      i++;
    }
    while (s[i] != '+' && s[i] != '\0') {
      r[j] = s[i];
      j++;
      i++;
    }
    while (s[i] == '+' && s[i] != '\0') {
      i++;
    }
    if (s[i] != '\0') {
      r[j] = ' ';
      j++;
    }
  }
  r[j] = '\0';
  cout << r;
  return 0;
}
