while True:
    try:
        s = input().strip()
        while len(s) > 8:
            print(s[:8])
            s = s[8:]
        print(s.ljust(8,'0'))
    except:
        break

还是这样写的最舒服, 区间切片左闭右开