#include<stdio.h>\x0d main(){long n,sum,n1;while(1){scanf("%ld",&n);if(n==0)break;sum=0;while(n>0){n1=n%10;sum+=n1;n/=10;}printf("%d\n",45-sum);}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page