LearnPy Hub
← Arena
EasyRating 900

Decode the Runs

Decode a run-length string like a3b1c2 into aaabcc. Counts can have several digits.

Input

One line.

Output

The decoded string.

Sample 1

Input
a3b1c2
Output
aaabcc

Sample 2

Input
x10
Output
xxxxxxxxxx
solution.py
Output appears here
Decode the Runs · Python Arena problem · LearnPy Hub