s=input() while s!="@": s=s.split() ch=s[0] n=int(s[1]) print(" "*(n-1)+ch) i=n-2 while i>=1: print(" "*i+ch+" "*((n-i-1)*2-1)+ch) i-=1 if n>1:print(ch*(n*2-1)) print() s=input()