diff --git a/solutions/python/208A.py b/solutions/python/208A.py index 332aaf7..f9685ec 100644 --- a/solutions/python/208A.py +++ b/solutions/python/208A.py @@ -1,7 +1,7 @@ import re s = input() -s = re.sub(r"WUB*", " ", s) -s = ' '.join(s.split(' ')) +s = re.sub(r"WUB", " ", s) +s = ' '.join([c for c in s.split(' ') if c != '']) print(s)