"""
49 Dubstep - https://codeforces.com/problemset/problem/208/A
"""
print(input().replace("WUB", " "))
"""
49 Dubstep - https://codeforces.com/problemset/problem/208/A
"""
print(input().replace("WUB", " "))
49 Dubstep - https://codeforces.com/problemset/problem/208/A