newton/solutions/python/208A.py

8 lines
111 B
Python
Raw Normal View History

import re
s = input()
2025-01-20 20:39:34 +00:00
s = re.sub(r"WUB", " ", s)
s = ' '.join([c for c in s.split(' ') if c != ''])
print(s)