Problem Description

Decode pattern like 3[a2[c]] -> accaccacc.

Input Format

One line encoded string.

Output Format

One line decoded.

Sample Test Case

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

Constraints

Output length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next