for([a,b]=readline().split(i=" ");i<2*b;)print(Array(a*Math.sin(i/b*6.283)-~a+!!i++|0).join(" ")+"*")