while True: #不要停
    try:
        s = input()
        for i in range(0, len(s), 8):
            print("{:0<8}".format(s[i:i+8])) #左对齐,长度为8,用0填充
    except:
        break