li = input().split()
a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
ls = list(map(int, li))
for i in range(1, 10):
if ls[i] > 0:
temp = a[i]
ls[i] = ls[i] - 1
break
for i in range(0, 10):
while ls[i] != 0:
temp = temp * 10 + a[i]
ls[i] = ls[i] - 1
print(temp)