• + 0 comments

    thats how it is done without print trick

    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)