i,p=1e4;main(n){for(scanf("%d",&n);i++<97;p=p%n*10)printf("%d",p/n);}