def draw_grid_hor():
    return '+----+----+'

def draw_grid_ver():
    print ('|    |    |')* 3

if __name__ == '__main__':
    print(draw_grid_hor())
    print(draw_grid_ver())
    print(draw_grid_hor())
    print(draw_grid_ver())
    print(draw_grid_hor())
