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

from bisect import bisect

D = [0.2,0.6,1.1]

L = [0,0,0,0]

R = [0,0,0,0]

while True:

    try:

        left,right = list(map(float,input().split()))

    except:

        break

    L[bisect(D,left)] += 1

    R[bisect(D,right)] += 1

for left,right in zip(L,R)[::-1]:

    print(left,right)

# optimized version of the same code:

from bisect import bisect

D = [0.2,0.6,1.1]

L = [0]*4

R = [0]*4

while True:

    try:

        left,right = list(map(float,input().split()))

    except:

        break

    L[bisect(D,left)] += 1

    R[bisect(D,right)] += 1

for left,right in zip(L,R)[::-1]:

    print(left,right)
from bisect import bisect

D = [0.2, 0.6, 1.1]
L = [0, 0, 0, 0]
R = [0, 0, 0, 0]
while True:
    try:
        left, right = list(map(float, input().split()))
    except:
        break
    L[bisect(D, left)] += 1
    R[bisect(D, right)] += 1
for left, right in zip(L, R)[::-1]:
    print(left, right)

from bisect import bisect

D = [0.2, 0.6, 1.1]
L = [0] * 4
R = [0] * 4
while True:
    try:
        left, right = list(map(float, input().split()))
    except:
        break
    L[bisect(D, left)] += 1
    R[bisect(D, right)] += 1
for left, right in zip(L, R)[::-1]:
    print(left, right)

-L = [0, 0, 0, 0] -R = [0, 0, 0, 0] +L = [0] * 4 +R = [0] * 4