Problem Description

Read string like a2b3c1 meaning aa bbb c. Output decoded string. If format is invalid (missing count or non-digit count), output ERROR.

Input Format

One line rle string.

Output Format

Decoded string or ERROR.

Sample Test Case

Input:
a2b3
Output:
aabbb

Constraints

Length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next