a = input()
b = input()
c = input()
print(a, end='')
print(b, end='')
print(c, end='')
print()
print(b, end='')
print(c, end='')
print(a, end='')
print()
print(c, end='')
print(a, end='')
print(b, end='')
print()
a10 = a[0: 10]
b10 = b[0: 10]
c10 = c[0: 10]

print(a10, end='')
print(b10, end='')
print(c10)
