• + 0 comments

    import math if name == 'main': n = int(input()) a = 0 m = 10**n for i in range(1, n+1): m = math.floor(math.log10(i))+1 m = 10**m a = a*m + i print(a)