1748

    1748번 파이썬

    import sys input = sys.stdin.readline n = int(input()) a=len(str(n)) cnt=0 for i in range(a): cnt+=i*(10**i-10**(i-1)) cnt+=(n-10**(a-1)+1)*a print(int(cnt))