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: 126ms
Memory: 21432kB
Author: shanzhenyu
In contest: 1086

while True:
	n = map(str,raw_input().strip().split())
	a = n[0]
	if a == '@':
		break
	b = int(n[1])
	sg = ''
	for i in range(b+1) :
		if i == 1: 
			print ' '*(b-1) + a
		elif i == b:
			print a*(2*b-1)
		elif i >1 and i <b :
			print ' '*(b-i) + a + ' '*(2*i-3) + a
	print