while True: try: str1 = raw_input().split('~') print type(str1) if str1 == [' ']: break print str1 except: break