Skip to content
UPEEC

Run-Length Encoding

Easy#strings· solved by 0 · time limit 2.0 s

Compress a string by replacing each run of the same character with the character followed by the run length. aaabccdddd becomes a3b1c2d4.

Input

One string of lowercase letters.

Output

The encoded string.

Constraints

1 to 10510^5 letters.

Sample 1

Input

aaabccdddd

Output

a3b1c2d4

Sample 2

Input

abc

Output

a1b1c1

Sign in or join free to run and submit your solution.