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

import numpy as np

S = list(eval(input()))

S_len = len(S)

num_lst = np.zeros(S_len + 1)

for i in range(S_len):

    if S[i] == "<":

        num_lst[i + 1] = max(num_lst[i] + 1, num_lst[i + 1])





for i in range(S_len - 1, -1 , -1):

    if S[i] == ">":

        num_lst[i] = max(num_lst[i], num_lst[i + 1] + 1)

print((int(np.sum(num_lst))))

# optimized version of the same code:

S = list(eval(input()))

numList = [0] * (len(S) + 1)

for i in range(len(S)):

    if S[i] == '<':

        numList[i + 1] = numList[i] + 1



for i in range(len(S) - 1 , -1 , -1):

    if S[i] == '>':

        numList[i] = max(numList[i + 1] + 1 ,numList[i])

print((sum(numList)))
import numpy as np

S = list(eval(input()))
S_len = len(S)
num_lst = np.zeros(S_len + 1)
for i in range(S_len):
    if S[i] == "<":
        num_lst[i + 1] = max(num_lst[i] + 1, num_lst[i + 1])
for i in range(S_len - 1, -1, -1):
    if S[i] == ">":
        num_lst[i] = max(num_lst[i], num_lst[i + 1] + 1)
print((int(np.sum(num_lst))))

S = list(eval(input()))
numList = [0] * (len(S) + 1)
for i in range(len(S)):
    if S[i] == "<":
        numList[i + 1] = numList[i] + 1
for i in range(len(S) - 1, -1, -1):
    if S[i] == ">":
        numList[i] = max(numList[i + 1] + 1, numList[i])
print((sum(numList)))

-import numpy as np - -S_len = len(S) -num_lst = np.zeros(S_len + 1) -for i in range(S_len): +numList = [0] * (len(S) + 1) +for i in range(len(S)): -        num_lst[i + 1] = max(num_lst[i] + 1, num_lst[i + 1]) -for i in range(S_len - 1, -1, -1): +        numList[i + 1] = numList[i] + 1 +for i in range(len(S) - 1, -1, -1): -        num_lst[i] = max(num_lst[i], num_lst[i + 1] + 1) -print((int(np.sum(num_lst)))) +        numList[i] = max(numList[i + 1] + 1, numList[i]) +print((sum(numList)))