def main():
    count = 0
    for i in range(1, 10):
        exp = 1
        while True:
            if len(str(i ** exp)) == exp:
                count += 1
            else:
                break
            exp += 1
    print(count)


if __name__ == '__main__':
    main()

6e379a815bc11cd0ddd3db7d88c3668e69c5bd8c
<mask token>

def main():
    count = 0
    for i in range(1, 10):
        exp = 1
        while True:
            if len(str(i ** exp)) == exp:
                count += 1
            else:
                break
            exp += 1
    print(count)


<mask token>

def main():
    count = 0
    for i in range(1, 10):
        exp = 1
        while True:
            if len(str(i ** exp)) == exp:
                count += 1
            else:
                break
            exp += 1
    print(count)


if __name__ == '__main__':
    main()
