Problem Description

Decode k[text]. If brackets are unbalanced or number is missing, print ERROR.

Input Format

One line encoded string.

Output Format

Decoded or ERROR.

Sample Test Case

Input:
2[ab]3[c]
Output:
ababccc

Constraints

Output length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next