rank = [[0,0] for i in range(4)]

while True:

    try:

        eye = list(map(float, input().split()))

        for i in range(2):

            if   eye[i] >= 1.1: rank[0][i] += 1

            elif eye[i] >= 0.6: rank[1][i] += 1

            elif eye[i] >= 0.2: rank[2][i] += 1

            else:                   rank[3][i] += 1

    except:

        break

for i in range(4):

    print(" ".join(map(str, rank[i])))
c = [1.1,0.6,0.2,0.0]

r = [[0,0] for i in range(4)]

while True:

    try:

        e = list(map(float, input().split()))

        for i in range(2):

            for j in range(4):

                if e[i] >= c[j]:

                	r[j][i] += 1

                	break

    except:

        break

for i in range(4):

	print(r[i][0],r[i][1])
rank = [[0, 0] for i in range(4)]
while True:
    try:
        eye = list(map(float, input().split()))
        for i in range(2):
            if eye[i] >= 1.1:
                rank[0][i] += 1
            elif eye[i] >= 0.6:
                rank[1][i] += 1
            elif eye[i] >= 0.2:
                rank[2][i] += 1
            else:
                rank[3][i] += 1
    except:
        break
for i in range(4):
    print(" ".join(map(str, rank[i])))

c = [1.1, 0.6, 0.2, 0.0]
r = [[0, 0] for i in range(4)]
while True:
    try:
        e = list(map(float, input().split()))
        for i in range(2):
            for j in range(4):
                if e[i] >= c[j]:
                    r[j][i] += 1
                    break
    except:
        break
for i in range(4):
    print(r[i][0], r[i][1])

-rank = [[0, 0] for i in range(4)] +c = [1.1, 0.6, 0.2, 0.0] +r = [[0, 0] for i in range(4)] -        eye = list(map(float, input().split())) +        e = list(map(float, input().split())) -            if eye[i] >= 1.1: -                rank[0][i] += 1 -            elif eye[i] >= 0.6: -                rank[1][i] += 1 -            elif eye[i] >= 0.2: -                rank[2][i] += 1 -            else: -                rank[3][i] += 1 +            for j in range(4): +                if e[i] >= c[j]: +                    r[j][i] += 1 +                    break -    print(" ".join(map(str, rank[i]))) +    print(r[i][0], r[i][1])