var i,n:comp;s,t:string;begin read(n);for i:=-n to n do begin s:=s+'*****';str(s:trunc(sqrt(n*n-i*i)),t);writeln(t:n,'*',t:-n)end;end.