str1 = input()
str2 = input()

def split_str(str1):
    m= len(str1)
    index = 0
    if m>0: 
        add = 8 - m%8
        m += add
        for i in range(add):
            str1 += '0'
    res = []
    while m>=8:
        res.append(str1[index:index+8])
        index += 8
        m -= 8
    return res
final = split_str(str1) + split_str(str2)
for i in final:
    print(i)