Twilight Sparkle once got a crystal from the Crystal Mine. A crystal of size n (n is odd; n > 1) is an n × n matrix with a diamond inscribed into it.

You are given an odd integer n. You need to draw a crystal of size n. The diamond cells of the matrix should be represented by character "D". All other cells of the matrix should be represented by character "*". Look at the examples to understand what you need to draw.


-----Input-----

The only line contains an integer n (3 ≤ n ≤ 101; n is odd). 


-----Output-----

Output a crystal of size n.


-----Examples-----
Input
3

Output
*D*
DDD
*D*

Input
5

Output
**D**
*DDD*
DDDDD
*DDD*
**D**

Input
7

Output
***D***
**DDD**
*DDDDD*
DDDDDDD
*DDDDD*
**DDD**
***D***

Difficulty: interview

Starter code:

Solutions:
n=int(input())
magic=int((n-1)/2)
for t in range(magic, -1, -1):
    print(t*'*'+'D'*(n-2*t)+t*'*')
for u in range(1, magic+1):
    print(u*'*'+'D'*(n-2*u)+u*'*')


a = int(input())

for i in range(a//2):
    print('*' * ((a//2)-i), end='')
    print('D' * (i*2+1), end='')
    print('*' * ((a//2)-i), end='')
    print()


for i in range(a//2, -1, -1):
    print('*' * ((a//2)-i), end='')
    print('D' * (i*2+1), end='')
    print('*' * ((a//2)-i), end='')
    print()


n = int(input())

for i in range(n//2+1):
    x = (n-(i*2+1))//2
    print('*'*x +'D'*(i*2+1)+ '*'*x)

for i in range(n//2):
    x = (n-(n-i*2-2))//2
    print('*'*x +'D'*(n-i*2-2)+ '*'*x)


a = int(input())
for i in range((a-1)//2):
	print('*'*((a-2*i-1)//2)+'D'*(2*i+1)+'*'*((a-2*i-1)//2))
print('D'*a)
for i in range((a-1)//2-1,-1,-1):
	print('*'*((a-2*i-1)//2)+'D'*(2*i+1)+'*'*((a-2*i-1)//2))

n = int(input())
for i in range(n):
    print('*' * abs(i - n // 2), end='')
    print('D' * (n - 2 * abs(i - n // 2)), end='')
    print('*' * abs(i - n // 2), end='')
    print()



#!/usr/bin/env python3

import re

def main():
    n = int(input())

    for x in range(n // 2):
        print('{0}{1}{0}'.format('*' * ((n - x * 2) // 2), 'D' * (x * 2 + 1)))

    for x in range(n // 2 + 1):
        print('{0}{1}{0}'.format('*' * x, 'D' * ((n - x * 2))))

def __starting_point():
    main()

__starting_point()

n = int(input())
seq = []
x = 1
for i in range(n//2):
    s = 'D' * x
    star = (n - x) // 2
    s = '*' * star + s + '*' * star
    x += 2
    seq.append(s)


for i in range(0,len(seq)):
    print(seq[i])
print('D'*n)

for i in range(len(seq)-1,-1,-1):
    print(seq[i])
    
    
    


#input
n=int(input())

#variables
x=(n-1)//2

#start of program
for i in range(x):
	print('*'*(x-i)+'D'*(2*i+1)+'*'*(x-i))
print('D'*n)
for i in range(x):
	print('*'*(i+1)+'D'*(n-2*(i+1))+'*'*(i+1))

n = int(input())

def printLine(nbEtoile):
    print("*" * nbEtoile + "D" * (n - 2*nbEtoile) + "*" * nbEtoile)

for nbEtoile in range(-n//2 + 1, n//2 + 1):
    printLine(abs(nbEtoile))

n = int(input())
a = [['*'] * n for i in range(n)]
k = n // 2
cnt = n // 2 + 1
for i in range(n // 2 + 1):
    for j in range(k, cnt):
        a[i][j] = 'D'
    k -= 1
    cnt += 1
k += 2
cnt -= 2

for i in range(n // 2 + 1, n):
    for j in range(k, cnt):
        a[i][j] = 'D'
    k += 1
    cnt -= 1
for i in range(n):
    for j in range(n):
        print(a[i][j], end = '')
    print()
    
    

__author__ = 'gen'
n=int(input())
for i in range(1,n,2):
    z=int((n-i)/2)
    print('*'*z+'D'*i+'*'*z)
print('D'*n)
for i in range(n-2,0,-2):
    z=int((n-i)/2)
    print('*'*z+'D'*i+'*'*z)

n = int(input())
k=1
for i in range(n//2, 0, -1):
    print("*"*i+'D'*k+'*'*i)
    k+=2
print("D"*n)
k-=2
for i in range(1, n//2+1):
    print("*"*i+'D'*k+'*'*i)
    k-=2
    
    


n=int(input())
ans=[['*']*n for i in range(n)]
for i in range(n//2):
    for j in range(n//2-i,n//2+i+1):
        ans[i][j]='D'
for i in range(n):
    ans[n//2][i]='D'
for i in range(n//2+1,n):
    ans[i]=ans[n-i-1]   
for i in range(n):
    for j in range(n):
        print(ans[i][j],end='')
    print('')

n=int(input())
for i in range(0,(n-1)//2):
    j=2*i+1
    k=(n-j)//2
    print('*'*k+'D'*j+'*'*k)
print("D"*n)
for i in range(0,(n-1)//2):
    ii=(n-1)//2-i-1
    j=2*ii+1
    k=(n-j)//2
    print('*'*k+'D'*j+'*'*k)

x = int(input())
add = int(x/2)
for i in range(x):
    for j in range(x):
        a1 = i-add
        b2 = j-add
        if abs(a1) + abs(b2) <= add:
            print ("D", end="")
        else:
            print("*", end = "")
    print ()


n = int(input())
k = 1
m = 1
for i in range(n//2 + 1):
   s = ''
   for j in range((n-k)//2):
      s += '*'
   for j in range(k):
      s += 'D'
   for j in range((n-k)//2):
      s += '*'
   k += 2
   print(s)

k -= 4
for i in range(n//2):
   s = ''
   for j in range((n-k)//2):
      s += '*'
   for j in range(k):
      s += 'D'
   for j in range((n-k)//2):
      s += '*'
   k -= 2
   print(s)

n = int(input())
a = [['D'] * (n) for x in range(n)]
for i in range(n):
    star = abs(n - ((i + 1) * 2 - 1))
    for j in range(star // 2):
        a[i][j] = '*'
        a[i][- j - 1] = '*'
for x in a:
    print(*x, sep='')

N = int(input())
string = ['D' for i in range(N)]
matrix = [['*' for i in range(N)]]
matrix[0][N // 2] = 'D'
matrix += [['*'] * N for i in range(N - 1)]
for i in range(1, N):
    for j in range(1, N - 1):
        if matrix[i - 1][j] == 'D' or matrix[i - 1][j - 1] == 'D' or matrix[i - 1][j + 1] == 'D':
            matrix[i][j] = 'D'
for i in matrix[:N // 2]:
    print(''.join(i))
print(''.join(string))
for i in range(N // 2 - 1, -1, -1):
    print(''.join(matrix[i]))


n = int(input())
string = ""
x = (n-1)/2
x = int(x)
diamond = ""
count = 0
count2 = 0
row = 0
string2 = ""
array = []
while row <= x:
    while count < x:
        string += "*"
        count += 1
    while count2 < (2*row + 1):
        string2 += "D"
        count2 += 1
    string = string + string2 + string
    row += 1
    count = row
    count2 = 0
    array.append(string)
    string = ""
    string2 = ""
for i in range(1, x+1):
    array.append(array[x-i])
for i in range(0, n-1):
    array[i] = array[i] + "\n"
for item in array:
    diamond += item
print(diamond)


n = int(input())
j = -1
first = True
for i in range(1,1+n):
    if first:
        j += 2
    else:
        j -= 2
    x = (n-j)//2
    ans = ''
    for k in range(x):
        ans += '*'
    for k in range(j):
        ans += 'D'
    for k in range(x):
        ans += '*'
    print(ans)
    if j==n:
        first = False


n=int(input())
i1=1
for i in range(n):
    if(i<=n//2):
        for k in range((n-2*i-1)//2):
            print("*",end='')
        for l in range(2*i+1):
            print("D",end='')
        for m in range((n-2*i-1)//2):
            print("*",end='')
        print("\t")
    elif(i==(n//2)):
        for o in range(n):
            print("D",end='')
        print("\t")
    elif(i>((n//2)) and i<n):
        for p in range((i1)):
            print("*",end='')
        for q in range((n-2*i1)):
            print("D",end='')
        for r in range((i1)):
            print("*",end='')
        i1=i1+1
        print("\t")

n = int(input())
a = [['*' for i in range(n)] for i in range(n)]
k = 1
for i in range(0, n // 2 + 1):
    for j in range(n // 2, n // 2 + k):
        a[i][j] = 'D'
    a[i][0: n // 2] = reversed(a[i][n // 2 + 1: n])
    k += 1
k -= 2
for i in range(n // 2 + 1, n):
    for j in range(n // 2, n // 2 + k):
        a[i][j] = 'D'
    a[i][0: n // 2] = reversed(a[i][n // 2 + 1: n])
    k -= 1
for i in a:
    print(''.join(i))

from itertools import chain
n = int(input())
p = lambda i: "*" * ((n - i + 1) // 2) + "D" * i + "*" * ((n - i + 1) // 2)
print("\n".join(p(i) for i in chain(range(1, n + 1, 2), range(n - 2, 0, -2))))

n = int(input())

for i in range(n):
    for j in range(n):
        if min(i, n - 1 - i) + min(j, n - 1 - j) < n // 2:
            print('*', end = '')
        else:
            print('D', end = '')
    print()
    


n = int(input())

if n == 1:
    print('D')
elif n == 3:
    print('*D*\nDDD\n*D*')
elif n == 5:
    print('**D**\n*DDD*\nDDDDD\n*DDD*\n**D**')
elif n == 7:
    print('***D***\n**DDD**\n*DDDDD*\nDDDDDDD\n*DDDDD*\n**DDD**\n***D***')
elif n == 9:
    print('****D****\n***DDD***\n**DDDDD**\n*DDDDDDD*\nDDDDDDDDD\n*DDDDDDD*\n**DDDDD**\n***DDD***\n****D****')
elif n == 11:
    print('*****D*****\n****DDD****\n***DDDDD***\n**DDDDDDD**\n*DDDDDDDDD*\nDDDDDDDDDDD\n*DDDDDDDDD*\n**DDDDDDD**\n***DDDDD***\n****DDD****\n*****D*****')
elif n == 13:
    print('******D******\n*****DDD*****\n****DDDDD****\n***DDDDDDD***\n**DDDDDDDDD**\n*DDDDDDDDDDD*\nDDDDDDDDDDDDD\n*DDDDDDDDDDD*\n**DDDDDDDDD**\n***DDDDDDD***\n****DDDDD****\n*****DDD*****\n******D******')
elif n == 15:
    print('*******D*******\n******DDD******\n*****DDDDD*****\n****DDDDDDD****\n***DDDDDDDDD***\n**DDDDDDDDDDD**\n*DDDDDDDDDDDDD*\nDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDD*\n**DDDDDDDDDDD**\n***DDDDDDDDD***\n****DDDDDDD****\n*****DDDDD*****\n******DDD******\n*******D*******')
elif n == 17:
    print('********D********\n*******DDD*******\n******DDDDD******\n*****DDDDDDD*****\n****DDDDDDDDD****\n***DDDDDDDDDDD***\n**DDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDD**\n***DDDDDDDDDDD***\n****DDDDDDDDD****\n*****DDDDDDD*****\n******DDDDD******\n*******DDD*******\n********D********')
elif n == 19:
    print('*********D*********\n********DDD********\n*******DDDDD*******\n******DDDDDDD******\n*****DDDDDDDDD*****\n****DDDDDDDDDDD****\n***DDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDD***\n****DDDDDDDDDDD****\n*****DDDDDDDDD*****\n******DDDDDDD******\n*******DDDDD*******\n********DDD********\n*********D*********')
elif n == 21:
    print('**********D**********\n*********DDD*********\n********DDDDD********\n*******DDDDDDD*******\n******DDDDDDDDD******\n*****DDDDDDDDDDD*****\n****DDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDD****\n*****DDDDDDDDDDD*****\n******DDDDDDDDD******\n*******DDDDDDD*******\n********DDDDD********\n*********DDD*********\n**********D**********')
elif n == 23:
    print('***********D***********\n**********DDD**********\n*********DDDDD*********\n********DDDDDDD********\n*******DDDDDDDDD*******\n******DDDDDDDDDDD******\n*****DDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDD*****\n******DDDDDDDDDDD******\n*******DDDDDDDDD*******\n********DDDDDDD********\n*********DDDDD*********\n**********DDD**********\n***********D***********')
elif n == 25:
    print('************D************\n***********DDD***********\n**********DDDDD**********\n*********DDDDDDD*********\n********DDDDDDDDD********\n*******DDDDDDDDDDD*******\n******DDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDD******\n*******DDDDDDDDDDD*******\n********DDDDDDDDD********\n*********DDDDDDD*********\n**********DDDDD**********\n***********DDD***********\n************D************')
elif n == 27:
    print('*************D*************\n************DDD************\n***********DDDDD***********\n**********DDDDDDD**********\n*********DDDDDDDDD*********\n********DDDDDDDDDDD********\n*******DDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDD*******\n********DDDDDDDDDDD********\n*********DDDDDDDDD*********\n**********DDDDDDD**********\n***********DDDDD***********\n************DDD************\n*************D*************')
elif n == 29:
    print('**************D**************\n*************DDD*************\n************DDDDD************\n***********DDDDDDD***********\n**********DDDDDDDDD**********\n*********DDDDDDDDDDD*********\n********DDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDD********\n*********DDDDDDDDDDD*********\n**********DDDDDDDDD**********\n***********DDDDDDD***********\n************DDDDD************\n*************DDD*************\n**************D**************')
elif n == 31:
    print('***************D***************\n**************DDD**************\n*************DDDDD*************\n************DDDDDDD************\n***********DDDDDDDDD***********\n**********DDDDDDDDDDD**********\n*********DDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDD*********\n**********DDDDDDDDDDD**********\n***********DDDDDDDDD***********\n************DDDDDDD************\n*************DDDDD*************\n**************DDD**************\n***************D***************')
elif n == 33:
    print('****************D****************\n***************DDD***************\n**************DDDDD**************\n*************DDDDDDD*************\n************DDDDDDDDD************\n***********DDDDDDDDDDD***********\n**********DDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDD**********\n***********DDDDDDDDDDD***********\n************DDDDDDDDD************\n*************DDDDDDD*************\n**************DDDDD**************\n***************DDD***************\n****************D****************')
elif n == 35:
    print('*****************D*****************\n****************DDD****************\n***************DDDDD***************\n**************DDDDDDD**************\n*************DDDDDDDDD*************\n************DDDDDDDDDDD************\n***********DDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDD***********\n************DDDDDDDDDDD************\n*************DDDDDDDDD*************\n**************DDDDDDD**************\n***************DDDDD***************\n****************DDD****************\n*****************D*****************')
elif n == 37:
    print('******************D******************\n*****************DDD*****************\n****************DDDDD****************\n***************DDDDDDD***************\n**************DDDDDDDDD**************\n*************DDDDDDDDDDD*************\n************DDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDD************\n*************DDDDDDDDDDD*************\n**************DDDDDDDDD**************\n***************DDDDDDD***************\n****************DDDDD****************\n*****************DDD*****************\n******************D******************')
elif n == 39:
    print('*******************D*******************\n******************DDD******************\n*****************DDDDD*****************\n****************DDDDDDD****************\n***************DDDDDDDDD***************\n**************DDDDDDDDDDD**************\n*************DDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDD*************\n**************DDDDDDDDDDD**************\n***************DDDDDDDDD***************\n****************DDDDDDD****************\n*****************DDDDD*****************\n******************DDD******************\n*******************D*******************')
elif n == 41:
    print('********************D********************\n*******************DDD*******************\n******************DDDDD******************\n*****************DDDDDDD*****************\n****************DDDDDDDDD****************\n***************DDDDDDDDDDD***************\n**************DDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDD**************\n***************DDDDDDDDDDD***************\n****************DDDDDDDDD****************\n*****************DDDDDDD*****************\n******************DDDDD******************\n*******************DDD*******************\n********************D********************')
elif n == 43:
    print('*********************D*********************\n********************DDD********************\n*******************DDDDD*******************\n******************DDDDDDD******************\n*****************DDDDDDDDD*****************\n****************DDDDDDDDDDD****************\n***************DDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDD***************\n****************DDDDDDDDDDD****************\n*****************DDDDDDDDD*****************\n******************DDDDDDD******************\n*******************DDDDD*******************\n********************DDD********************\n*********************D*********************')
elif n == 45:
    print('**********************D**********************\n*********************DDD*********************\n********************DDDDD********************\n*******************DDDDDDD*******************\n******************DDDDDDDDD******************\n*****************DDDDDDDDDDD*****************\n****************DDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDD****************\n*****************DDDDDDDDDDD*****************\n******************DDDDDDDDD******************\n*******************DDDDDDD*******************\n********************DDDDD********************\n*********************DDD*********************\n**********************D**********************')
elif n == 47:
    print('***********************D***********************\n**********************DDD**********************\n*********************DDDDD*********************\n********************DDDDDDD********************\n*******************DDDDDDDDD*******************\n******************DDDDDDDDDDD******************\n*****************DDDDDDDDDDDDD*****************\n****************DDDDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDDDD****************\n*****************DDDDDDDDDDDDD*****************\n******************DDDDDDDDDDD******************\n*******************DDDDDDDDD*******************\n********************DDDDDDD********************\n*********************DDDDD*********************\n**********************DDD**********************\n***********************D***********************')
elif n == 49:
    print('************************D************************\n***********************DDD***********************\n**********************DDDDD**********************\n*********************DDDDDDD*********************\n********************DDDDDDDDD********************\n*******************DDDDDDDDDDD*******************\n******************DDDDDDDDDDDDD******************\n*****************DDDDDDDDDDDDDDD*****************\n****************DDDDDDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDDDDDD****************\n*****************DDDDDDDDDDDDDDD*****************\n******************DDDDDDDDDDDDD******************\n*******************DDDDDDDDDDD*******************\n********************DDDDDDDDD********************\n*********************DDDDDDD*********************\n**********************DDDDD**********************\n***********************DDD***********************\n************************D************************')
elif n == 51:
    print('*************************D*************************\n************************DDD************************\n***********************DDDDD***********************\n**********************DDDDDDD**********************\n*********************DDDDDDDDD*********************\n********************DDDDDDDDDDD********************\n*******************DDDDDDDDDDDDD*******************\n******************DDDDDDDDDDDDDDD******************\n*****************DDDDDDDDDDDDDDDDD*****************\n****************DDDDDDDDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDDDDDDDD****************\n*****************DDDDDDDDDDDDDDDDD*****************\n******************DDDDDDDDDDDDDDD******************\n*******************DDDDDDDDDDDDD*******************\n********************DDDDDDDDDDD********************\n*********************DDDDDDDDD*********************\n**********************DDDDDDD**********************\n***********************DDDDD***********************\n************************DDD************************\n*************************D*************************')
elif n == 53:
    print('**************************D**************************\n*************************DDD*************************\n************************DDDDD************************\n***********************DDDDDDD***********************\n**********************DDDDDDDDD**********************\n*********************DDDDDDDDDDD*********************\n********************DDDDDDDDDDDDD********************\n*******************DDDDDDDDDDDDDDD*******************\n******************DDDDDDDDDDDDDDDDD******************\n*****************DDDDDDDDDDDDDDDDDDD*****************\n****************DDDDDDDDDDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDDDDDDDDDD****************\n*****************DDDDDDDDDDDDDDDDDDD*****************\n******************DDDDDDDDDDDDDDDDD******************\n*******************DDDDDDDDDDDDDDD*******************\n********************DDDDDDDDDDDDD********************\n*********************DDDDDDDDDDD*********************\n**********************DDDDDDDDD**********************\n***********************DDDDDDD***********************\n************************DDDDD************************\n*************************DDD*************************\n**************************D**************************')
elif n == 57:
    print('****************************D****************************\n***************************DDD***************************\n**************************DDDDD**************************\n*************************DDDDDDD*************************\n************************DDDDDDDDD************************\n***********************DDDDDDDDDDD***********************\n**********************DDDDDDDDDDDDD**********************\n*********************DDDDDDDDDDDDDDD*********************\n********************DDDDDDDDDDDDDDDDD********************\n*******************DDDDDDDDDDDDDDDDDDD*******************\n******************DDDDDDDDDDDDDDDDDDDDD******************\n*****************DDDDDDDDDDDDDDDDDDDDDDD*****************\n****************DDDDDDDDDDDDDDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDDDDDDDDDDDDDD****************\n*****************DDDDDDDDDDDDDDDDDDDDDDD*****************\n******************DDDDDDDDDDDDDDDDDDDDD******************\n*******************DDDDDDDDDDDDDDDDDDD*******************\n********************DDDDDDDDDDDDDDDDD********************\n*********************DDDDDDDDDDDDDDD*********************\n**********************DDDDDDDDDDDDD**********************\n***********************DDDDDDDDDDD***********************\n************************DDDDDDDDD************************\n*************************DDDDDDD*************************\n**************************DDDDD**************************\n***************************DDD***************************\n****************************D****************************')
elif n == 69:
    print('**********************************D**********************************\n*********************************DDD*********************************\n********************************DDDDD********************************\n*******************************DDDDDDD*******************************\n******************************DDDDDDDDD******************************\n*****************************DDDDDDDDDDD*****************************\n****************************DDDDDDDDDDDDD****************************\n***************************DDDDDDDDDDDDDDD***************************\n**************************DDDDDDDDDDDDDDDDD**************************\n*************************DDDDDDDDDDDDDDDDDDD*************************\n************************DDDDDDDDDDDDDDDDDDDDD************************\n***********************DDDDDDDDDDDDDDDDDDDDDDD***********************\n**********************DDDDDDDDDDDDDDDDDDDDDDDDD**********************\n*********************DDDDDDDDDDDDDDDDDDDDDDDDDDD*********************\n********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************\n*******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************\n******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************\n*****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************\n****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************\n*****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************\n******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************\n*******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************\n********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************\n*********************DDDDDDDDDDDDDDDDDDDDDDDDDDD*********************\n**********************DDDDDDDDDDDDDDDDDDDDDDDDD**********************\n***********************DDDDDDDDDDDDDDDDDDDDDDD***********************\n************************DDDDDDDDDDDDDDDDDDDDD************************\n*************************DDDDDDDDDDDDDDDDDDD*************************\n**************************DDDDDDDDDDDDDDDDD**************************\n***************************DDDDDDDDDDDDDDD***************************\n****************************DDDDDDDDDDDDD****************************\n*****************************DDDDDDDDDDD*****************************\n******************************DDDDDDDDD******************************\n*******************************DDDDDDD*******************************\n********************************DDDDD********************************\n*********************************DDD*********************************\n**********************************D**********************************')
elif n == 81:
    print('****************************************D****************************************\n***************************************DDD***************************************\n**************************************DDDDD**************************************\n*************************************DDDDDDD*************************************\n************************************DDDDDDDDD************************************\n***********************************DDDDDDDDDDD***********************************\n**********************************DDDDDDDDDDDDD**********************************\n*********************************DDDDDDDDDDDDDDD*********************************\n********************************DDDDDDDDDDDDDDDDD********************************\n*******************************DDDDDDDDDDDDDDDDDDD*******************************\n******************************DDDDDDDDDDDDDDDDDDDDD******************************\n*****************************DDDDDDDDDDDDDDDDDDDDDDD*****************************\n****************************DDDDDDDDDDDDDDDDDDDDDDDDD****************************\n***************************DDDDDDDDDDDDDDDDDDDDDDDDDDD***************************\n**************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************************\n*************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************************\n************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************************\n***********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********************\n**********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********************\n*********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********************\n********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************\n*******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************\n******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************\n*****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************\n****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************\n*****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************\n******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************\n*******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************\n********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************\n*********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********************\n**********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********************\n***********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********************\n************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************************\n*************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************************\n**************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************************\n***************************DDDDDDDDDDDDDDDDDDDDDDDDDDD***************************\n****************************DDDDDDDDDDDDDDDDDDDDDDDDD****************************\n*****************************DDDDDDDDDDDDDDDDDDDDDDD*****************************\n******************************DDDDDDDDDDDDDDDDDDDDD******************************\n*******************************DDDDDDDDDDDDDDDDDDD*******************************\n********************************DDDDDDDDDDDDDDDDD********************************\n*********************************DDDDDDDDDDDDDDD*********************************\n**********************************DDDDDDDDDDDDD**********************************\n***********************************DDDDDDDDDDD***********************************\n************************************DDDDDDDDD************************************\n*************************************DDDDDDD*************************************\n**************************************DDDDD**************************************\n***************************************DDD***************************************\n****************************************D****************************************')
elif n == 91:
    print('*********************************************D*********************************************\n********************************************DDD********************************************\n*******************************************DDDDD*******************************************\n******************************************DDDDDDD******************************************\n*****************************************DDDDDDDDD*****************************************\n****************************************DDDDDDDDDDD****************************************\n***************************************DDDDDDDDDDDDD***************************************\n**************************************DDDDDDDDDDDDDDD**************************************\n*************************************DDDDDDDDDDDDDDDDD*************************************\n************************************DDDDDDDDDDDDDDDDDDD************************************\n***********************************DDDDDDDDDDDDDDDDDDDDD***********************************\n**********************************DDDDDDDDDDDDDDDDDDDDDDD**********************************\n*********************************DDDDDDDDDDDDDDDDDDDDDDDDD*********************************\n********************************DDDDDDDDDDDDDDDDDDDDDDDDDDD********************************\n*******************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************************\n******************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************************\n*****************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************************\n****************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************************\n***************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************************\n**************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************************\n*************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************************\n************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************************\n***********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********************\n**********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********************\n*********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********************\n********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************\n*******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************\n******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************\n*****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************\n****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************\n*****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************\n******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************\n*******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************\n********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************\n*********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********************\n**********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********************\n***********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********************\n************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************************\n*************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************************\n**************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************************\n***************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************************\n****************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************************\n*****************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************************\n******************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************************\n*******************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************************\n********************************DDDDDDDDDDDDDDDDDDDDDDDDDDD********************************\n*********************************DDDDDDDDDDDDDDDDDDDDDDDDD*********************************\n**********************************DDDDDDDDDDDDDDDDDDDDDDD**********************************\n***********************************DDDDDDDDDDDDDDDDDDDDD***********************************\n************************************DDDDDDDDDDDDDDDDDDD************************************\n*************************************DDDDDDDDDDDDDDDDD*************************************\n**************************************DDDDDDDDDDDDDDD**************************************\n***************************************DDDDDDDDDDDDD***************************************\n****************************************DDDDDDDDDDD****************************************\n*****************************************DDDDDDDDD*****************************************\n******************************************DDDDDDD******************************************\n*******************************************DDDDD*******************************************\n********************************************DDD********************************************\n*********************************************D*********************************************')
elif n == 101:
    print('**************************************************D**************************************************\n*************************************************DDD*************************************************\n************************************************DDDDD************************************************\n***********************************************DDDDDDD***********************************************\n**********************************************DDDDDDDDD**********************************************\n*********************************************DDDDDDDDDDD*********************************************\n********************************************DDDDDDDDDDDDD********************************************\n*******************************************DDDDDDDDDDDDDDD*******************************************\n******************************************DDDDDDDDDDDDDDDDD******************************************\n*****************************************DDDDDDDDDDDDDDDDDDD*****************************************\n****************************************DDDDDDDDDDDDDDDDDDDDD****************************************\n***************************************DDDDDDDDDDDDDDDDDDDDDDD***************************************\n**************************************DDDDDDDDDDDDDDDDDDDDDDDDD**************************************\n*************************************DDDDDDDDDDDDDDDDDDDDDDDDDDD*************************************\n************************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD************************************\n***********************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********************************\n**********************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********************************\n*********************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********************************\n********************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************************\n*******************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************************\n******************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************************\n*****************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************************\n****************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************************\n***************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************************\n**************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************************\n*************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************************\n************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************************\n***********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********************\n**********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********************\n*********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********************\n********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************\n*******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************\n******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************\n*****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************\n****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\nDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n*DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*\n**DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**\n***DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***\n****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****\n*****DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****\n******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******\n*******DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******\n********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********\n*********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********\n**********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********\n***********DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********\n************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************\n*************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************\n**************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************\n***************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************\n****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************\n*****************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************\n******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************\n*******************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************\n********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************\n*********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********************\n**********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********************\n***********************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********************\n************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD************************\n*************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*************************\n**************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**************************\n***************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***************************\n****************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD****************************\n*****************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*****************************\n******************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD******************************\n*******************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*******************************\n********************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD********************************\n*********************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD*********************************\n**********************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD**********************************\n***********************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD***********************************\n************************************DDDDDDDDDDDDDDDDDDDDDDDDDDDDD************************************\n*************************************DDDDDDDDDDDDDDDDDDDDDDDDDDD*************************************\n**************************************DDDDDDDDDDDDDDDDDDDDDDDDD**************************************\n***************************************DDDDDDDDDDDDDDDDDDDDDDD***************************************\n****************************************DDDDDDDDDDDDDDDDDDDDD****************************************\n*****************************************DDDDDDDDDDDDDDDDDDD*****************************************\n******************************************DDDDDDDDDDDDDDDDD******************************************\n*******************************************DDDDDDDDDDDDDDD*******************************************\n********************************************DDDDDDDDDDDDD********************************************\n*********************************************DDDDDDDDDDD*********************************************\n**********************************************DDDDDDDDD**********************************************\n***********************************************DDDDDDD***********************************************\n************************************************DDDDD************************************************\n*************************************************DDD*************************************************\n**************************************************D**************************************************')