import sys
s=sys.stdin.readline().strip()
result_list=[]
start=0
count=1
org_len=len(s)
residue_len=len(s)
while(True):
if count<=residue_len:
result_str = int(s[start :start + count], 2)
result_list.append(result_str)
residue_len=residue_len-count
start = start + count
if count==10:
count=1
else:
count+=1
else:
break
print(len(result_list))
for i in result_list:
print(i,end=" ")

京公网安备 11010502036488号