for i in range(9): if i%4==0: print('{0}{1}'.format('+','-'*7)*2,end='+') print() else: print(('|'+" "*7)*2,end='|') print()