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





n = int(eval(input()))



abn = [list(map(int,input().split())) for _ in range(n)]





abn.sort()

abn.sort(key = lambda x:x[1])





#print(abn)



ts = 0 # time_stamp

enable = True

for abi in abn:

    a, b = abi



    if not ts + a <= b:

        enable = False

        break

    else:

        ts += a



print(('Yes' if enable else 'No'))

# optimized version of the same code:



n = int(eval(input()))



abn = [list(map(int,input().split())) for _ in range(n)]





#abn.sort()

abn.sort(key = lambda x:x[1])





#print(abn)



ts = 0 # time_stamp

enable = True

for abi in abn:

    a, b = abi



    if not ts + a <= b:

        enable = False

        break

    else:

        ts += a



print(('Yes' if enable else 'No'))
n = int(eval(input()))
abn = [list(map(int, input().split())) for _ in range(n)]
abn.sort()
abn.sort(key=lambda x: x[1])
# print(abn)
ts = 0  # time_stamp
enable = True
for abi in abn:
    a, b = abi
    if not ts + a <= b:
        enable = False
        break
    else:
        ts += a
print(("Yes" if enable else "No"))

n = int(eval(input()))
abn = [list(map(int, input().split())) for _ in range(n)]
# abn.sort()
abn.sort(key=lambda x: x[1])
# print(abn)
ts = 0  # time_stamp
enable = True
for abi in abn:
    a, b = abi
    if not ts + a <= b:
        enable = False
        break
    else:
        ts += a
print(("Yes" if enable else "No"))

-abn.sort() +# abn.sort()