
# 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, T = input().split()

A, B= list(map(int, input().split()))

U = eval(input())

if S == U:

    print((A - 1, B))

else:

    print((A, B - 1))

# optimized version of the same code:

S, T = input().split()

A, B= list(map(int, input().split()))

U = eval(input())

if S == U:

    A-=1

else:

    B-=1

print((A,B))
S, T = input().split()
A, B = list(map(int, input().split()))
U = eval(input())
if S == U:
    print((A - 1, B))
else:
    print((A, B - 1))

S, T = input().split()
A, B = list(map(int, input().split()))
U = eval(input())
if S == U:
    A -= 1
else:
    B -= 1
print((A, B))

-    print((A - 1, B)) +    A -= 1 -    print((A, B - 1)) +    B -= 1 +print((A, B))