a,p=io.read(2,3)for i=0,2*p-1 do print((' '):rep(a+math.ceil(a*math.sin(6.283*i/p)))..'*')end