EasyRating 900
Remove the Beat
A song was made by inserting WUB before, between and after the words (possibly several times). Print the original words separated by single spaces.
Input
One uppercase string.
Output
The words.
Sample 1
Input
WUBWUBABCWUB
Output
ABC
Sample 2
Input
WUBWEWUBAREWUBWUBTHEWUBCHAMPIONSWUBMYWUBFRIENDWUB
Output
WE ARE THE CHAMPIONS MY FRIEND
Output appears here