CF208A Dubstep

题目描述

Vasya 有一句歌词(可能含有空格),他在第一个单词之前和最后一个单词之后加上若干(可以为 $0$)个 `WUB`,再每个单词之间加上若干(至少为 $1$)个 `WUB`,转变成一个新的字符串(无空格) 如 `I AM X` 可以变成 `WUBWUBIWUBAMWUBWUBX` 而不能变成 `WUBWUBIAMWUBX`。 现在给出转变后的字符串,求出原来的字符串。

输入格式

输入包括一个非空字符串 $S$,其中 $S$ 仅由大写字母组成并且其长度不超过 $200$。 保证原来的字符串不含有 `WUB` 并且至少有一个单词。

输出格式

输出转变前的字符串,每个单词用空格分隔。

说明/提示

In the first sample: "WUBWUBABCWUB" = "WUB" + "WUB" + "ABC" + "WUB". That means that the song originally consisted of a single word "ABC", and all words "WUB" were added by Vasya. In the second sample Vasya added a single word "WUB" between all neighbouring words, in the beginning and in the end, except for words "ARE" and "THE" — between them Vasya added two "WUB".