#include <bits/stdc++.h>
using namespace std;
bool __insideGrid(int x, int y, int h, int w, int sx = 0, int sy = 0) {
  if (x < sx) return false;
  if (y < sy) return false;
  if (x >= sx + h) return false;
  if (y >= sy + w) return false;
  return true;
}
const double pi = acos(-1.0);
bool startsWith(string a, int idx, string b) {
  int i, j;
  for (i = idx, j = 0; i < a.size() && j < b.size(); i++, j++) {
    if (a[i] != b[j]) return false;
  }
  return (j == b.size());
}
string trim(string a) {
  int st = 0;
  while (st < a.size() && a[st] == ' ') st++;
  int en = a.size() - 1;
  while (a[en] == ' ') en--;
  string ret = "";
  for (int i = st; i <= en; i++) {
    if (i > st && a[i] == ' ' && a[i - 1] == ' ')
      continue;
    else
      ret += a[i];
  }
  return ret;
}
int main() {
  string str, ret;
  size_t it;
  cin >> str;
  for (int i = 0; i < str.size();) {
    if (i + 2 < str.size() && str[i] == 'W' && str[i + 1] == 'U' &&
        str[i + 2] == 'B') {
      ret += ' ';
      i += 3;
    } else {
      ret += str[i];
      i++;
    }
  }
  ret = trim(ret);
  cout << ret << endl;
  return 0;
}
