var i,n:comp;s,t:string;begin read(n);i:=n;repeat s:=s+'*****';str(s:trunc(sqrt(n*n-i*i)),t);writeln(t:n,'*',t:-n);dec(i)until 1=0end.