LearnPy Hub
← Strings problems
Hard

Decode Run-Length Text

Read text where each letter is followed by how many times it repeats, like a3b12c1 (counts can have several digits). Print the decoded text.

Input

One line.

Output

One line.

Sample 1

Input
a3b1c2
Output
aaabcc

Sample 2

Input
x10
Output
xxxxxxxxxx
solution.py
Output appears here
Decode Run-Length Text · Python practice problem · LearnPy Hub