for row in range(7):
    for col in range(5):
        if((col==0 and row!=0)or (row==0 and col!=0 and col!=4)or(col==4 and row not in[0,3,4,5,6])or (row==3 and  col!=4)):
            print("*",end="")
        else:
            print(end=" ")
    print()
