#include #include int main() { freopen("povesti.in","r",stdin); freopen("povesti.out","w",stdout); long n,k,p,pov=0,s=0,l=0,i,j,z; scanf("%ld",&k); for(i=0;i<=k;i++) { j=i; while(j) { l++; j/=10; } s+=l; l=0; p=k; while(p) { pov++; p/=10; } } printf("%d\n%ld",pov,s+1); return 0; }