<reponame>Epoch1017/LintCode-Shared-Solutions
# B2004-对齐输出
num_list = input().split()
for number in num_list:
    print("%8d" % (int(number)), end = " ")

# B2004-对齐输出
num_list = input().split()
for number in num_list:
    print("%8d" % (int(number)), end = " ")
# B2004-对齐输出