#U
row=0
while row<6:
    col =0
    while col<10:
        if ( col==0 and row!=4 and row!=5) or(col==4 and row!=4 and row!=5)or (row==4 and col==1 ) or (row==4 and col==2)or (row==4 and col==3):

            print("*",end=" ")
        else:
            print(" ",end=" ")
        col +=1
    row +=1
    print()

#U
row=0
while row<6:
    col =0
    while col<10:
        if ( col==0 and row!=4 and row!=5) or(col==4 and row!=4 and row!=5)or (row==4 and col==1 ) or (row==4 and col==2)or (row==4 and col==3):

            print("*",end=" ")
        else:
            print(" ",end=" ")
        col +=1
    row +=1
    print()
