var i,k,n:comp=10000;begin read(n);repeat write(k div n);k:=k mod n*10;i:=i-104until i<0end.