if __name__ == "__main__": def get_num(s): c = "w" n = 0 m = 0 i = 0 j = 0 for e,v in enumerate(s): if v == c: m += 1 else: m = 0 j = e if m > n: n = m i = j return n s = input() chunk = "w"*get_num(s) for a in s.split(chunk): if a != '': print(a)