

s = input()
front = s[0]
back = s[1:]
sum = 0

while(len(back) > 0):
	if(front[-1:] != back[0]):
		front = front[:-1]
		back = back[1:]
		sum += 2
	else:
		front += back[0]
		back = back[1:]
	if(len(front) <= 0 and len(back) >= 2):
		front = back[0]
		back = back[1:]
	print(front+"+"+back)
print(sum)