#include <bits/stdc++.h>
int check(char s[], int j) {
  if ((s[j] == 'W' && s[j + 1] == 'U' && s[j + 2] == 'B') ||
      (s[j - 1] == 'W' && s[j] == 'U' && s[j + 1] == 'B') ||
      (s[j - 2] == 'W' && s[j - 1] == 'U' && s[j] == 'B'))
    return 0;
  else
    return 1;
}
int main() {
  char s[201], string[201];
  int i, j, k, p;
  scanf("%s", s);
  p = strlen(s);
  k = 0;
  for (j = 0; j < p; j++) {
    if (check(s, j) != 0) {
      while (check(s, j) != 0 && j < p) {
        string[k] = s[j];
        k++;
        j++;
      }
      string[k] = ' ';
      k++;
    }
  }
  for (i = 0; i < k - 1; i++) printf("%c", string[i]);
  printf("\n");
  return 0;
}
