#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int flag = 1, p = 1;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'W') {
      if (s[i + 1] == 'U' && i < s.length()) {
        if (s[i + 2] == 'B' && i < s.length()) {
          i = i + 2;
          flag = 1;
        } else {
          if (flag == 1 && p == 0) cout << " ";
          cout << s[i];
          flag = 0;
          p = 0;
        }
      } else {
        if (flag && p == 0) cout << " ";
        cout << s[i];
        flag = 0;
        p = 0;
      }
    } else {
      if (flag && p == 0) cout << " ";
      cout << s[i];
      flag = 0;
      p = 0;
    }
  }
  return 0;
}
