HZNUOJ


Problem_ID: H
Result: Accepted
Time: 143ms
Memory: 21432kB
Author: 15258500717
In contest: 1086

while True:
	s = raw_input().strip().split()
	a =s[0]
	if a=='@':
		break 
	n=int(s[1])
	for i in range(n):
		if i==0:
			d=' '*(n-1)+a
		elif i==n-1:
			d=a*(2*n-1)
		else:
			d=' '*(n-i-1)+a+' '*(2*i-1)+a
		print d
	print