l = input() for i in range(0, len(l), 8): print("{0:0<8}".format(l[i:i+8])) # format 格式。表示 输出0~8位字符,“<” 表示左对齐,冒号后的0表示以0填充其余位置