st = input() arr = list(st.split('"')) res = [] for s in arr: if '"' + s + '"' in st: res.append(s) else: res += list(s.split()) print(len(res)) for s in res: print(s)