Problem Description

Input like 3[a2[c]] means repeat inside brackets. Decode and print final string.

Input Format

One line encoded string.

Output Format

Decoded string.

Sample Test Case

Input:
3[a2[c]]
Output:
accaccacc

Constraints

Decoded length will be

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next