Start: Apr, 17, 2017 10:00:00
Python程序设计基础培训第二次作业
End: Apr, 23, 2017 14:00:00
Time elapsed:
Time remaining:

Problem_ID: H
Result: Accepted
Time: 127ms
Memory: 21432kB
Author: 18958157632
In contest: 1086

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