Problem Description

One word is given. If it is NEG, throw error NEG inside inner(). Outer should catch it, wrap as OUTER and attach cause. Finally print messages chain like OUTER->NEG.

Input Format

One word w.

Output Format

One line chain output.

Sample Test Case

Input:
NEG
Output:
OUTER->NEG

Constraints

Word length up to 1e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next