for s in input().split('w'): if s: print(s)