#3926. [Poi2002]括号

[Poi2002]括号

Description

image

Format

Input

image

Output

image

Samples

7
-
-
+
+
-
+
3