
# slower version:

s = input()
for i in range(len(s)):
  if i%2 == 0:
    print(s[i], end = '')


# optimized version of the same code:

s = input()
ans = ''
for i in range(len(s)):
  if i % 2 == 0:
    ans += s[i]
print(ans)



# slower version:

S=eval(input())

print((S.rfind('Z')-S.find('A')+1))

# optimized version of the same code:

s=input().strip()

a = s.find('A')

z = s.rfind('Z')

print((z-a+1))

S = eval(input())
print((S.rfind("Z") - S.find("A") + 1))

s = input().strip()
a = s.find("A")
z = s.rfind("Z")
print((z - a + 1))

-S = eval(input()) -print((S.rfind("Z") - S.find("A") + 1)) +s = input().strip() +a = s.find("A") +z = s.rfind("Z") +print((z - a + 1))