s=str(input())
stack=[] #栈 存储当前字符串
l=[] #列表 存储全部字符串
counter=0 #字符串计数器
for i in s:
if i=='"' and '"' in stack: #分情况1
l.append(''.join(stack[1::]))
stack=[]
counter+=1
elif i==' ' and '"' not in stack: #分情况2
if len(stack)!=0:
l.append(''.join(stack[0::]))
stack=[]
counter+=1
else: #分情况3
stack.append(i)
if len(stack)!=0: #最后再看下栈中是否还有字符串
l.append(''.join(stack[0::]))
counter+=1
print(counter)
for j in l:
print(j) 
京公网安备 11010502036488号