#include <bits/stdc++.h>
using namespace std;
void removeWUBs(char word[]);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  char word[201];
  scanf("%s", word);
  removeWUBs(word);
}
void removeWUBs(char word[]) {
  int n = strlen(word);
  char originalSong[201];
  int osi = 0;
  for (int i = 0; i < n; i++) {
    if (word[i] == 'W') {
      if (i + 1 < n) {
        if (word[i + 1] == 'U') {
          if (i + 2 < n) {
            if (word[i + 2] == 'B') {
              originalSong[osi++] = ' ';
              i += 2;
            } else {
              originalSong[osi++] = word[i];
            }
          } else {
            originalSong[osi++] = word[i];
          }
        } else {
          originalSong[osi++] = word[i];
        }
      } else {
        originalSong[osi++] = word[i];
      }
    } else {
      originalSong[osi++] = word[i];
    }
  }
  originalSong[osi] = '\0';
  char _originalSong[201];
  int _osi = 0;
  bool started = false;
  for (int i = 0; i < osi; i++) {
    if (originalSong[i] == ' ') {
      if (originalSong[i - 1] != ' ' && started) _originalSong[_osi++] = ' ';
    } else {
      started = true;
      _originalSong[_osi++] = originalSong[i];
    }
  }
  _originalSong[_osi] = '\0';
  printf("%s", _originalSong);
}
