
# 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:

a, b, c, x, y = list(map(int, input().split()))

ans = a * x + b * y

m = max(x, y)

for i in range(1, m+1):

  x -= 1

  y -= 1

  if x < 0:

    x = 0

  if y < 0:

    y = 0

  temp = c*(i*2) + x*a + y*b

  if temp < ans:

    ans = temp



print(ans)


# optimized version of the same code:

a, b, c, x, y = list(map(int, input().split()))

ans = a * x + b * y

ans = min(c * max(x, y) * 2, ans)

if x < y:

    ans = min(c * x * 2 + (y - x) * b, ans)

else:

    ans = min(c * y * 2 + (x - y) * a, ans)



print(ans)
a, b, c, x, y = list(map(int, input().split()))
ans = a * x + b * y
m = max(x, y)
for i in range(1, m + 1):
    x -= 1
    y -= 1
    if x < 0:
        x = 0
    if y < 0:
        y = 0
    temp = c * (i * 2) + x * a + y * b
    if temp < ans:
        ans = temp
print(ans)

a, b, c, x, y = list(map(int, input().split()))
ans = a * x + b * y
ans = min(c * max(x, y) * 2, ans)
if x < y:
    ans = min(c * x * 2 + (y - x) * b, ans)
else:
    ans = min(c * y * 2 + (x - y) * a, ans)
print(ans)

-m = max(x, y) -for i in range(1, m + 1): -    x -= 1 -    y -= 1 -    if x < 0: -        x = 0 -    if y < 0: -        y = 0 -    temp = c * (i * 2) + x * a + y * b -    if temp < ans: -        ans = temp +ans = min(c * max(x, y) * 2, ans) +if x < y: +    ans = min(c * x * 2 + (y - x) * b, ans) +else: +    ans = min(c * y * 2 + (x - y) * a, ans)