2025-05-23 19:13:01 +09:00

3 lines
67 B
Python

for i in range(int(input())):
s = input()
print(s[0]+s[-1])