a = input()
result = ""
count = 1
for i in range(len(a)- 1):
if a[i] == a[i+1]:
count += 1
else:
result += a[i] + str(count)
count = 1
result += a[-1] + str(count)
print(result)
To embed this project on your website, copy the following code and paste it into your website's HTML: