N = raw_input()
S = [] 
for i in range(0,len(N)):
  S.append(int(N[i]))
i = len(S)-1
print i
while i>0:
  print S
  print i
  if S[i] != S[i-1]:
    S.pop(i)
    S.pop(i-1)
    print S
    i = len(S)-1
  else:
    i = i -1
print len(N)-len(S)
  
  