A positive integer N is passed as the input. If we print all the numbers from 1 to N continuosly, the program must find the number of characters(digits) C printed and print the count C as the output.
The first line contains N.
The first line contains C.
1 <= N <= 9999999
Example Input/Output 1:
We print 12 and hence the total number of characters is 2.
Example Input/Output 2:
We print 123456789101112131415 and hence the total number of characters is 21.
n=int(input()) s="" for i in range(1,n+1): s+=str(i) print(len(s))