def solution(food):
n = len(food)
answer = []
for i in range(1,n):
fi = int(food[i]/2)
for j in range(fi):
answer.append(str(i))
answer.append('0')
for fi in answer[-2::-1]:
answer.append(str(fi))
answer = ''.join(answer)
return answer