문자열
import sys
def main():
input = sys.stdin.readline
for _ in range(int(input())):
word = input().rstrip()
print(word[0], word[-1], sep="")
main()
import sys
def main():
input = sys.stdin.readline
for _ in range(int(input())):
word = input().rstrip()
print(word[0], word[-1], sep="")
main()
댓글