
# 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()))

val = float('inf')

for k in range(10 ** 5 + 1):

    val = min(val, 2 * c * k + max(x - k, 0) * a + max(y - k, 0) * b)

print(val)

# optimized version of the same code:

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



ans = 0

ans += min(A + B, 2 * C) * min(X, Y)

if X > Y:

    ans += min(A, 2 * C) * (X - Y)

elif X < Y:

    ans += min(B, 2 * C) * (Y - X)

print(ans)

a, b, c, x, y = list(map(int, input().split()))
val = float("inf")
for k in range(10**5 + 1):
    val = min(val, 2 * c * k + max(x - k, 0) * a + max(y - k, 0) * b)
print(val)

A, B, C, X, Y = list(map(int, input().split()))
ans = 0
ans += min(A + B, 2 * C) * min(X, Y)
if X > Y:
    ans += min(A, 2 * C) * (X - Y)
elif X < Y:
    ans += min(B, 2 * C) * (Y - X)
print(ans)

-a, b, c, x, y = list(map(int, input().split())) -val = float("inf") -for k in range(10**5 + 1): -    val = min(val, 2 * c * k + max(x - k, 0) * a + max(y - k, 0) * b) -print(val) +A, B, C, X, Y = list(map(int, input().split())) +ans = 0 +ans += min(A + B, 2 * C) * min(X, Y) +if X > Y: +    ans += min(A, 2 * C) * (X - Y) +elif X < Y: +    ans += min(B, 2 * C) * (Y - X) +print(ans)