n = int(input())
a = ""
b = ""
c = ""
d = ""
for i in range(1, n + 1):
if i != n:
a += "+___ "
b += f"|{i} / "
c += "|__\ "
d += "| "
else:
a += "+___"
b += f"|{i} /"
c += "|__\"
print(a)
print(b)
print(c)
print(d)