Open SHyeonL opened 1 year ago
n = int(input())
answer = []
stack = []
flag = 0
m = 1
for i in range(n):
num = int(input())
while m<=num:
stack.append(m)
answer.append("+")
m += 1
if stack[-1] == num:
stack.pop()
answer.append("-")
else:
print("NO")
flag = 1
break
if flag ==0:
for i in answer:
print(i)