n = int(input())
for i in range(n):
    a = input().replace("·", " ")
    a = a.split()
    texto = ""

    for p in a:
        texto += p[0]
    print(texto)
28bb8e2547ec46ebaeee1f43d1779ebad551472c
<mask token>

<mask token>
for i in range(n):
    a = input().replace('·', ' ')
    a = a.split()
    texto = ''
    for p in a:
        texto += p[0]
    print(texto)

n = int(input())
for i in range(n):
    a = input().replace('·', ' ')
    a = a.split()
    texto = ''
    for p in a:
        texto += p[0]
    print(texto)

n = int(input())
for i in range(n):
    a = input().replace("·", " ")
    a = a.split()
    texto = ""

    for p in a:
        texto += p[0]
    print(texto)