>>777
main(n){scanf("%d",&n);printf("%d\n",n>900?10000:n*10+1000);}