import sys
lines = sys.stdin.read().splitlines()
output = lines[0]
for i in range(1, len(lines)):
    output += lines[i][-1]
print(output)

ecbc14c697243b4cf6536ac840d7644f88e50da3
<mask token>

<mask token>
for i in range(1, len(lines)):
    output += lines[i][-1]
print(output)

<mask token>
lines = sys.stdin.read().splitlines()
output = lines[0]
for i in range(1, len(lines)):
    output += lines[i][-1]
print(output)

import sys
lines = sys.stdin.read().splitlines()
output = lines[0]
for i in range(1, len(lines)):
    output += lines[i][-1]
print(output)
