print '\n'.join([ ''.join(['*' if y ^ x == y - x else ' ' for x in range(y + 1)]) for y in range(16) ])