The semester is already ending, so Danil made an effort and decided to visit a lesson on harmony analysis to know how does the professor look like, at least. Danil was very bored on this lesson until the teacher gave the group a simple task: find 4 vectors in 4-dimensional space, such that every coordinate of every vector is 1 or  - 1 and any two vectors are orthogonal. Just as a reminder, two vectors in *n*-dimensional space are considered to be orthogonal if and only if their scalar product is equal to zero, that is: 

Danil quickly managed to come up with the solution for this problem and the teacher noticed that the problem can be solved in a more general case for 2<sup class="upper-index">*k*</sup> vectors in 2<sup class="upper-index">*k*</sup>-dimensinoal space. When Danil came home, he quickly came up with the solution for this problem. Can you cope with it?
The only line of the input contains a single integer *k* (0 ≤ *k* ≤ 9).
Consider all scalar products in example:
 -  Vectors 1 and 2: ( + 1)·( + 1) + ( + 1)·( - 1) + ( - 1)·( + 1) + ( - 1)·( - 1) = 0 -  Vectors 1 and 3: ( + 1)·( + 1) + ( + 1)·( + 1) + ( - 1)·( + 1) + ( - 1)·( + 1) = 0 -  Vectors 1 and 4: ( + 1)·( + 1) + ( + 1)·( - 1) + ( - 1)·( - 1) + ( - 1)·( + 1) = 0 -  Vectors 2 and 3: ( + 1)·( + 1) + ( - 1)·( + 1) + ( + 1)·( + 1) + ( - 1)·( + 1) = 0 -  Vectors 2 and 4: ( + 1)·( + 1) + ( - 1)·( - 1) + ( + 1)·( - 1) + ( - 1)·( + 1) = 0 -  Vectors 3 and 4: ( + 1)·( + 1) + ( + 1)·( - 1) + ( + 1)·( - 1) + ( + 1)·( + 1) = 0
2
++++
+*+*
++**
+**+
1
++
+*
3
++++++++
+*+*+*+*
++**++**
+**++**+
++++****
+*+**+*+
++****++
+**+*++*
0
+
4
++++++++++++++++
+*+*+*+*+*+*+*+*
++**++**++**++**
+**++**++**++**+
++++****++++****
+*+**+*++*+**+*+
++****++++****++
+**+*++*+**+*++*
++++++++********
+*+*+*+**+*+*+*+
++**++****++**++
+**++**+*++**++*
++++********++++
+*+**+*+*+*++*+*
++****++**++++**
+**+*++**++*+**+
5
++++++++++++++++++++++++++++++++
+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*
++**++**++**++**++**++**++**++**
+**++**++**++**++**++**++**++**+
++++****++++****++++****++++****
+*+**+*++*+**+*++*+**+*++*+**+*+
++****++++****++++****++++****++
+**+*++*+**+*++*+**+*++*+**+*++*
++++++++********++++++++********
+*+*+*+**+*+*+*++*+*+*+**+*+*+*+
++**++****++**++++**++****++**++
+**++**+*++**++*+**++**+*++**++*
++++********++++++++********++++
+*+**+*+*+*++*+*+*+**+*+*+*++*+*
++****++**++++**++****++**++++**
+...
6
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*
++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**
+**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**+
++++****++++****++++****++++****++++****++++****++++****++++****
+*+**+*++*+**+*++*+**+*++*+**+*++*+**+*++*+**+*++*+**+*++*+**+*+
++****++++****++++****++++****++++****++++****++++****++++****++
+**+*++*+**+*++*+**+*++*+**+*++*+**+*++*+**+*++*+...
7
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*
++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**
+**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++**++...
8
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+...
9
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
#v=(x1,x2,x3,x4)
#xi==1 or -1
#<v1,v2>=0
import math

k=int(input())
dim=pow(2,k)
mid=pow(2,k-1)

l1=['+' for i in range(dim)]
l2=['+' for i in range(0,mid)]+['*'for i in range(mid,dim)]
s1=''.join(l1)
s2=''.join(l2)
print(s1)
print(s2)

#s(*)=s(+)=pow(2,k-1)

#if l(+)s(+)+l(*)s(*)==l(+)s(*)+l(*)s(+): ==0

i=0
j=mid
while(i<mid and j<dim):
    l=l2[:]
    l[i]='*'
    l[j]='+'
    s=''.join(l)
    print(s)
    i+=1
    j+=1

 		  			 	 		 	   		 				 		  	