#include <bits/stdc++.h>
using namespace std;
int checkWUB(char arr[], int len, int i) {
  if (arr[i] == 'W') {
    if (arr[i + 1] == 'U') {
      if (arr[i + 2] == 'B') {
        return 1;
      }
    }
  }
  return 0;
}
int main(void) {
  char beat[200] = {0};
  cin >> beat;
  int n = strlen(beat);
  for (int i = 0, j = 0; i < n; i++) {
    if (checkWUB(beat, n, i)) {
      i += 2;
    } else {
      j = i;
      while (!checkWUB(beat, n, j)) {
        cout << beat[j];
        j++;
        if (j == n) return 0;
      }
      i = j - 1;
      cout << ' ';
    }
  }
  return 0;
}
