n,m=map(int,input().split())
i=0
while i<n :
j=0
while j<m :
if i%2==0 or ((i-1)%4==0 and j==m-1) or ((i-3)%4==0 and j==0) :
print("#",end="")
else :
print("*",end="")
j+=1
print()
i+=1