# your code goes here
#code
tree_symbol = '*'
ornaments = ['@', '#', '&']


# 1 VERSION
print("\n1 VERSION")
# print top
print(' '*9+'+')

for i in range(9):
	# create empty line before tree 
    line_empty = list(' ' * (9-i))
    # create line of the tree (consisting '*' chars)
    line_tree  = list(tree_symbol * (i*2+1))
    
    # apply ornaments seperately
    ornament_index = 0
    for j in range(len(line_tree)):
    	# every second tree field, apply ornament
        if j%2 == 0:
            line_tree[j] = ornaments[ornament_index % len(ornaments)]
            ornament_index += 1
    print(''.join(line_empty+line_tree))
    
    
    
    
    
# 2 VERSION
print("\n2 VERSION")
# print top
print(' '*9+'+')

ornament_index = 0
for i in range(9):
	# create empty line before tree 
    line_empty = list(' ' * (9-i))
    # create line of the tree (consisting '*' chars)
    line_tree  = list(tree_symbol * (i*2+1))
    
    # apply ornaments seperately
    for j in range(len(line_tree)):
        if j%2 == 0:
        	# every second tree field, apply ornament
            line_tree[j] = ornaments[ornament_index % len(ornaments)]
            ornament_index += 1
    print(''.join(line_empty+line_tree))