Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100 for three categories: problem clarity, originality, and difficulty. 

The rating for Alice's challenge is the triplet a = (a[0], a[1], a[2]), and the rating for Bob's challenge is the triplet b = (b[0], b[1], b[2]).

The task is to find their comparison points by comparing a[0] with b[0], a[1] with b[1], and a[2] with b[2]. 

 If a[i] > b[i], then Alice is awarded 1 point. 
 If a[i] < b[i], then Bob is awarded 1 point. 
 If a[i] = b[i], then neither person receives a point.

Comparison points is the total points a person earned.  

Given a and b, determine their respective comparison points.  

Example   

a = [1, 2, 3] 

b = [3, 2, 1] 

For elements *0*, Bob is awarded a point because a[0] .  
For the equal elements a[1] and b[1], no points are earned.  
Finally, for elements 2, a[2] > b[2] so Alice receives a point.  

The return array is [1, 1] with Alice's score first and Bob's second.  

Function Description  

Complete the function compareTriplets in the editor below.  

compareTriplets has the following parameter(s):  

int a[3]: Alice's challenge rating  
int b[3]: Bob's challenge rating   

Return  

int[2]: Alice's score is in the first position, and Bob's score is in the second.  

Input Format

The first line contains 3 space-separated integers, a[0], a[1], and a[2], the respective values in triplet a. 

The second line contains 3 space-separated integers, b[0], b[1], and b[2], the respective values in triplet b.

Constraints

 1 ≤ a[i] ≤ 100
 1 ≤ b[i] ≤ 100

Sample Input 0
5 6 7
3 6 10

Sample Output 0
1 1

Explanation 0

In this example: 

$a=(a[0],a[1],a[2])=(5,6,7)$
$b=(b[0],b[1],b[2])=(3,6,10)$

Now, let's compare each individual score:

$a[0]>b[0]$, so Alice receives $1$ point.
$a[1]=b[1]$, so nobody receives a point.
$a[2]<b[2]$, so Bob receives $1$ point.

Alice's comparison score is $1$, and Bob's comparison score is $1$. Thus, we return the array $[1,1]$.  

Sample Input 1
17 28 30
99 16 8

Sample Output 1
2 1

Explanation 1

Comparing the ${0}^{t h}$ elements, $17<99$ so Bob receives a point. 

Comparing the $1^{st}$ and $2^{nd}$ elements, $28>16$ and $30>8$ so Alice receives two points. 

The return array is $[2,1]$.

Difficulty: EASY

Starter code:

Solutions:
import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
A = (a0 > b0) + (a1 > b1) + (a2 > b2)
B = (a0 < b0) + (a1 < b1) + (a2 < b2)
print(A, B)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
bob = 0
alice = 0
if a0 > b0:
	bob += 1
elif a0 < b0:
	alice += 1
if a1 > b1:
	bob += 1
elif a1 < b1:
	alice += 1
if a2 > b2:
	bob += 1
elif a2 < b2:
	alice += 1
print(bob, alice)


A = [int(x) for x in input().split()]
B = [int(x) for x in input().split()]
print(sum((a > b for (a, b) in zip(A, B))), sum((a < b for (a, b) in zip(A, B))))


import sys
(a0, a1, a2) = input().strip().split(' ')
A = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
B = [int(b0), int(b1), int(b2)]
alice = 0
bob = 0
for i in range(3):
	if A[i] > B[i]:
		alice += 1
	if A[i] < B[i]:
		bob += 1
	if A[i] == B[i]:
		pass
print(alice, bob)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
alice = 0
bob = 0
if a0 > b0:
	alice += 1
elif b0 > a0:
	bob += 1
if a1 > b1:
	alice += 1
elif b1 > a1:
	bob += 1
if a2 > b2:
	alice += 1
elif b2 > a2:
	bob += 1
print(alice, bob)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
rA = (a0 > b0) + (a1 > b1) + (a2 > b2)
rB = (a0 < b0) + (a1 < b1) + (a2 < b2)
print(rA, rB)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
alice = 0
bob = 0
if a0 > b0:
	alice += 1
elif b0 > a0:
	bob += 1
if a1 > b1:
	alice += 1
elif b1 > a1:
	bob += 1
if a2 > b2:
	alice += 1
elif b2 > a2:
	bob += 1
print('%d %d' % (alice, bob))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
A = (a0 > b0) + (a1 > b1) + (a2 > b2)
B = (a0 < b0) + (a1 < b1) + (a2 < b2)
print(A, B)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
print((b0 < a0) + (b1 < a1) + (b2 < a2), (a0 < b0) + (a1 < b1) + (a2 < b2))


import sys
(a0, a1, a2) = input().strip().split(' ')
a = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
b = [int(b0), int(b1), int(b2)]
sa = 0
sb = 0
for i in range(3):
	if a[i] > b[i]:
		sa += 1
	elif a[i] < b[i]:
		sb += 1
print(sa, sb)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
(a, b) = (0, 0)
if a0 < b0:
	b += 1
elif a0 > b0:
	a += 1
if a1 < b1:
	b += 1
elif a1 > b1:
	a += 1
if a2 < b2:
	b += 1
elif a2 > b2:
	a += 1
print(a, b)


import sys
(*a,) = map(int, input().split())
(*b,) = map(int, input().split())

def x(a, b):
	return sum([a[i] > b[i] for i in range(3)])
print(x(a, b), x(b, a))


a = [int(i) for i in input().split()]
b = [int(i) for i in input().split()]
(alice_point, bob_point) = (0, 0)
for i in range(3):
	if a[i] > b[i]:
		alice_point += 1
	if b[i] > a[i]:
		bob_point += 1
print(str(alice_point) + ' ' + str(bob_point))


A = [int(x) for x in input().split()]
B = [int(x) for x in input().split()]
a = b = 0
for (i, v) in enumerate(A):
	if v > B[i]:
		a += 1
	elif v < B[i]:
		b += 1
print(a, b)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
(alice, bob) = (0, 0)
if a0 > b0:
	alice += 1
if a1 > b1:
	alice += 1
if a2 > b2:
	alice += 1
if b0 > a0:
	bob += 1
if b1 > a1:
	bob += 1
if b2 > a2:
	bob += 1
print(alice, bob)


(a0, a1, a2) = map(int, input().split())
(b0, b1, b2) = map(int, input().split())
(alice, bob) = (0, 0)
if a0 > b0:
	alice += 1
elif a0 < b0:
	bob += 1
if a1 > b1:
	alice += 1
elif a1 < b1:
	bob += 1
if a2 > b2:
	alice += 1
elif a2 < b2:
	bob += 1
print(alice, bob)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
(a_score, b_score) = (0, 0)
if a0 > b0:
	a_score += 1
elif b0 > a0:
	b_score += 1
if a1 > b1:
	a_score += 1
elif b1 > a1:
	b_score += 1
if a2 > b2:
	a_score += 1
elif b2 > a2:
	b_score += 1
print('%i %i' % (a_score, b_score))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
alice = 0
bob = 0
if a0 > b0:
	alice += 1
elif b0 > a0:
	bob += 1
if a1 > b1:
	alice += 1
elif b1 > a1:
	bob += 1
if a2 > b2:
	alice += 1
elif b2 > a2:
	bob += 1
print(alice, bob)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = 0
b = 0
if a0 > b0:
	a = a + 1
elif b0 > a0:
	b = b + 1
if a1 > b1:
	a = a + 1
elif b1 > a1:
	b = b + 1
if a2 > b2:
	a = a + 1
elif b2 > a2:
	b = b + 1
print(str(a) + ' ' + str(b))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
aScore = str(int(a0 > b0) + int(a1 > b1) + int(a2 > b2))
bScore = str(int(b0 > a0) + int(b1 > a1) + int(b2 > a2))
print('' + aScore + ' ' + bScore)


import sys
c1 = 0
c2 = 0
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
if a0 > b0:
	c1 += 1
if a0 < b0:
	c2 += 1
if a1 > b1:
	c1 += 1
if a1 < b1:
	c2 += 1
if a2 > b2:
	c1 += 1
if a2 < b2:
	c2 += 1
print(c1, c2)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
apoint = 0
bpoint = 0
if a0 > b0:
	apoint += 1
if a0 < b0:
	bpoint += 1
if a1 > b1:
	apoint += 1
if a1 < b1:
	bpoint += 1
if a2 > b2:
	apoint += 1
if a2 < b2:
	bpoint += 1
print(str(apoint) + ' ' + str(bpoint))


import sys
a = [int(x) for x in input().strip().split(' ')]
b = [int(x) for x in input().strip().split(' ')]
sum_a = 0
sum_b = 0
for i in range(3):
	if a[i] > b[i]:
		sum_a += 1
	if a[i] < b[i]:
		sum_b += 1
print(sum_a, sum_b)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = 0
b = 0
if a0 > b0:
	a += 1
elif a0 < b0:
	b += 1
if a1 > b1:
	a += 1
elif a1 < b1:
	b += 1
if a2 > b2:
	a += 1
elif a2 < b2:
	b += 1
print(a, b)


import sys
a = [int(x) for x in input().split()]
b = [int(x) for x in input().split()]
print(sum((1 for i in range(3) if a[i] > b[i])), end=' ')
print(sum((1 for i in range(3) if a[i] < b[i])))


import sys
from operator import lt, gt
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
comparisons = [(a0, b0), (a1, b1), (a2, b2)]
(alice, bob) = (0, 0)
for (a, b) in comparisons:
	result = a - b
	if result > 0:
		alice += 1
	elif result:
		bob += 1
print('%d %d' % (alice, bob))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
scoreA = 0
scoreB = 0
if a0 > b0:
	scoreA += 1
elif a0 < b0:
	scoreB += 1
if a1 > b1:
	scoreA += 1
elif a1 < b1:
	scoreB += 1
if a2 > b2:
	scoreA += 1
elif a2 < b2:
	scoreB += 1
print(scoreA, scoreB)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
(alice, bob) = (0, 0)
if a0 > b0:
	alice += 1
elif a0 < b0:
	bob += 1
else:
	pass
if a1 > b1:
	alice += 1
elif a1 < b1:
	bob += 1
else:
	pass
if a2 > b2:
	alice += 1
elif a2 < b2:
	bob += 1
else:
	pass
print(alice, bob)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
alice = bob = 0
for (a, b) in zip((a0, a1, a2), (b0, b1, b2)):
	if a > b:
		alice += 1
	elif b > a:
		bob += 1
print(alice, bob)


import sys
(a0, a1, a2) = input().strip().split(' ')
alice = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
bob = [int(b0), int(b1), int(b2)]
alice_score = 0
bob_score = 0
for i in range(len(alice)):
	if alice[i] > bob[i]:
		alice_score += 1
	elif alice[i] < bob[i]:
		bob_score += 1
print(str(alice_score) + ' ' + str(bob_score))


a = [int(x) for x in input().split(' ')]
b = [int(x) for x in input().split(' ')]
(alice_score, bob_score) = (0, 0)
for i in range(3):
	if a[i] > b[i]:
		alice_score += 1
	elif b[i] > a[i]:
		bob_score += 1
print(alice_score, bob_score)


alice = input()
alice = alice.split(' ')
bob = input()
bob = bob.split(' ')
bobPoints = 0
alicePoints = 0
for i in range(0, 3):
	if int(bob[i]) > int(alice[i]):
		bobPoints += 1
	elif int(bob[i]) < int(alice[i]):
		alicePoints += 1
print(alicePoints, bobPoints)


import sys
apoint = 0
bpoint = 0
a = input().split()
b = input().split()
for i in range(3):
	if int(a[i]) > int(b[i]):
		apoint = apoint + 1
	elif int(a[i]) < int(b[i]):
		bpoint = bpoint + 1
print(apoint, bpoint)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a_point = 0
b_point = 0
if a0 > b0:
	a_point += 1
elif b0 > a0:
	b_point += 1
if a1 > b1:
	a_point += 1
elif b0 > a0:
	b_point += 1
if a2 > b2:
	a_point += 1
elif b2 > a2:
	b_point += 1
print(a_point, b_point)


a = list(map(int, input().split()))
b = list(map(int, input().split()))
(x, y) = (0, 0)
for i in range(3):
	if a[i] > b[i]:
		x += 1
	elif a[i] < b[i]:
		y += 1
print(x, y)


arr_a = list(map(int, input().strip().split()))
arr_b = list(map(int, input().strip().split()))
a = 0
b = 0
for i in range(0, 3):
	if arr_a[i] > arr_b[i]:
		a += 1
	elif arr_a[i] < arr_b[i]:
		b += 1
print(a, b)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = (a0, a1, a2)
A = 0
B = 0
for (i, num) in enumerate((b0, b1, b2)):
	if a[i] > num:
		A += 1
	elif a[i] < num:
		B += 1
print(A, B)


import sys
(a0, a1, a2) = input().strip().split(' ')
a = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
b = [int(b0), int(b1), int(b2)]
ascore = 0
bscore = 0

def compare(a, b):
	if a - b:
		if a - b > 0:
			return 1
		else:
			return -1
	return 0
for (x, y) in zip(a, b):
	if compare(x, y) == 1:
		ascore += 1
	elif compare(x, y) == -1:
		bscore += 1
	else:
		pass
print(ascore, bscore)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]

def compute(a0, a1, a2, b0, b1, b2):
	a = 0
	b = 0
	if a0 > b0:
		a += 1
	elif a0 < b0:
		b += 1
	if a1 > b1:
		a += 1
	elif a1 < b1:
		b += 1
	if a2 > b2:
		a += 1
	elif a2 < b2:
		b += 1
	print(a, b)
compute(a0, a1, a2, b0, b1, b2)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]

def calc(a, b):
	if a > b:
		return (1, 0)
	elif a < b:
		return (0, 1)
	else:
		return (0, 0)
sv = [calc(a0, b0), calc(a1, b1), calc(a2, b2)]
sv = [sum(x) for x in zip(*sv)]
print('%d %d' % (sv[0], sv[1]))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
print((a0 > b0) + (a1 > b1) + (a2 > b2), (b0 > a0) + (b1 > a1) + (b2 > a2))


A = list(map(int, input().strip().split()))
B = list(map(int, input().strip().split()))
a = 0
b = 0
for i in range(3):
	if A[i] > B[i]:
		a += 1
	elif A[i] < B[i]:
		b += 1
print(a, b)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
alice = 0
bob = 0
if a0 > b0:
	alice += 1
elif b0 > a0:
	bob += 1
if a1 > b1:
	alice += 1
elif b1 > a1:
	bob += 1
if a2 > b2:
	alice += 1
elif b2 > a2:
	bob += 1
print(str(alice) + ' ' + str(bob))


import sys
(a0, a1, a2) = input().strip().split(' ')
A = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
B = [int(b0), int(b1), int(b2)]
scorea = 0
scoreb = 0
for i in range(len(A)):
	if A[i] > B[i]:
		scorea += 1
	elif A[i] < B[i]:
		scoreb += 1
print(str(scorea) + ' ' + str(scoreb))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
(a, b) = (0, 0)
if a0 > b0:
	a += 1
elif a0 < b0:
	b += 1
if a1 > b1:
	a += 1
elif a1 < b1:
	b += 1
if a2 > b2:
	a += 1
elif a2 < b2:
	b += 1
print(a, end=' ')
print(b)


import sys
a = [int(e) for e in input().strip().split(' ')]
b = [int(e) for e in input().strip().split(' ')]
score = [0, 0]
for i in range(0, 3):
	if a[i] > b[i]:
		score[0] += 1
	elif a[i] < b[i]:
		score[1] += 1
print(score[0], score[1])


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
ascore = 0
bscore = 0

def scorecomp(int1, int2):
	if int1 > int2:
		return 1
	elif int1 < int2:
		return -1
	else:
		return 0
if scorecomp(a0, b0) == 1:
	ascore += 1
elif scorecomp(a0, b0) == -1:
	bscore += 1
if scorecomp(a1, b1) == 1:
	ascore += 1
elif scorecomp(a1, b1) == -1:
	bscore += 1
if scorecomp(a2, b2) == 1:
	ascore += 1
elif scorecomp(a2, b2) == -1:
	bscore += 1
print(str(ascore) + ' ' + str(bscore))


a = list(map(int, input().strip().split()))
b = list(map(int, input().strip().split()))
alice = bob = 0
for i in range(3):
	if a[i] > b[i]:
		alice += 1
	if b[i] > a[i]:
		bob += 1
print(alice, bob)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a_s = 0
b_s = 0
if a0 < b0:
	b_s += 1
elif a0 > b0:
	a_s += 1
if a1 < b1:
	b_s += 1
elif a1 > b1:
	a_s += 1
if a2 < b2:
	b_s += 1
elif a2 > b2:
	a_s += 1
print(a_s, b_s)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = 0
b = 0
if a0 > b0:
	a += 1
if b0 > a0:
	b += 1
if a1 > b1:
	a += 1
if b1 > a1:
	b += 1
if a2 > b2:
	a += 1
if b2 > a2:
	b += 1
print(a, b)


import sys
(a0, a1, a2) = input().strip().split(' ')
a = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
b = [int(b0), int(b1), int(b2)]
(A, B) = (0, 0)
for i in range(3):
	if a[i] > b[i]:
		A += 1
	elif a[i] < b[i]:
		B += 1
print('{0} {1}'.format(A, B))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
aTotal = int(a0 > b0) + int(a1 > b1) + int(a2 > b2)
bTotal = int(b0 > a0) + int(b1 > a1) + int(b2 > a2)
print(str(aTotal) + ' ' + str(bTotal))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = 0
b = 0
if a0 > b0:
	a += 1
if a1 > b1:
	a += 1
if a2 > b2:
	a += 1
if b0 > a0:
	b += 1
if b1 > a1:
	b += 1
if b2 > a2:
	b += 1
print(str(a) + ' ' + str(b))


import sys
(a0, a1, a2) = [int(x) for x in input().strip().split(' ')]
(b0, b1, b2) = [int(x) for x in input().strip().split(' ')]
pa = (a0 > b0) + (a1 > b1) + (a2 > b2)
pb = (a0 < b0) + (a1 < b1) + (a2 < b2)
print(pa, pb)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
ca = 0
cb = 0
if a0 > b0:
	ca += 1
elif a0 < b0:
	cb += 1
if a1 > b1:
	ca += 1
elif a1 < b1:
	cb += 1
if a2 > b2:
	ca += 1
elif a2 < b2:
	cb += 1
print(str(ca) + ' ' + str(cb))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
l = [True] * 3
l[0] = a0 > b0
l[1] = a1 > b1
l[2] = a2 > b2
print(sum(l), end=' ')
l[0] = b0 > a0
l[1] = b1 > a1
l[2] = b2 > a2
print(sum(l))


import sys
(a0, a1, a2) = input().strip().split(' ')
a = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
b = [int(b0), int(b1), int(b2)]
ascore = bscore = 0
for i in range(len(a)):
	if a[i] > b[i]:
		ascore += 1
	elif a[i] < b[i]:
		bscore += 1
print('{} {}'.format(ascore, bscore))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = 0
b = 0
if a0 > b0:
	a += 1
elif a0 < b0:
	b += 1
if a1 > b1:
	a += 1
elif a1 < b1:
	b += 1
if a2 > b2:
	a += 1
elif a2 < b2:
	b += 1
print('{} {}'.format(a, b))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
rate = [0, 0]
A = (a0, a1, a2)
B = (b0, b1, b2)
for i in range(3):
	if A[i] > B[i]:
		rate[0] += 1
	elif A[i] < B[i]:
		rate[1] += 1
print('{} {}'.format(*rate))


import sys
(a0, a1, a2) = input().strip().split(' ')
A = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
B = [int(b0), int(b1), int(b2)]
Ascore = 0
Bscore = 0
for cmp in range(3):
	if A[cmp] > B[cmp]:
		Ascore += 1
	elif B[cmp] > A[cmp]:
		Bscore += 1
print(str(Ascore) + ' ' + str(Bscore))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = b = 0
if a0 > b0:
	a += 1
elif a0 < b0:
	b += 1
if a1 > b1:
	a += 1
elif a1 < b1:
	b += 1
if a2 > b2:
	a += 1
elif a2 < b2:
	b += 1
print(str(a) + ' ' + str(b))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = [a0, a1, a2]
b = [b0, b1, b2]
alice = 0
bob = 0
for i in range(3):
	if a[i] > b[i]:
		alice += 1
	if a[i] < b[i]:
		bob += 1
print(alice, bob)


import sys
a = 0
b = 0
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
A = [a0, a1, a2]
B = [b0, b1, b2]
for i in range(0, 3):
	if A[i] > B[i]:
		a = a + 1
	elif B[i] > A[i]:
		b = b + 1
print(a, b)


__author__ = 'Rushil'
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
p_a = 0
p_b = 0
t_a = (a0, a1, a2)
t_b = (b0, b1, b2)
for i in range(len(t_a)):
	if t_a[i] > t_b[i]:
		p_a += 1
	elif t_a[i] < t_b[i]:
		p_b += 1
	elif t_a == t_b:
		pass
print(p_a, p_b)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = 0
b = 0
if a0 > b0:
	a += 1
elif b0 > a0:
	b += 1
if a1 > b1:
	a += 1
elif b1 > a1:
	b += 1
if a2 > b2:
	a += 1
elif b2 > a2:
	b += 1
print(a, b)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = 0
b = 0
(x, y, z) = (0, 0, 0)
if a0 >= 0 and a0 <= 100 and (b0 >= 0) and (b0 <= 100):
	if a0 > b0:
		a += 1
	elif b0 > a0:
		b += 1
	x = 1
if a1 >= 0 and a1 <= 100 and (b1 >= 0) and (b1 <= 100):
	if a1 > b1:
		a += 1
	elif b1 > a1:
		b += 1
	y = 1
if a2 >= 0 and a2 <= 100 and (b2 >= 0) and (b2 <= 100):
	if a2 > b2:
		a += 1
	elif b2 > a2:
		b += 1
	z = 1
if x == 0 or y == 0 or z == 0:
	print('Error')
else:
	print(a, b)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
alice = 0
bob = 0
for pair in [(a0, b0), (a1, b1), (a2, b2)]:
	if pair[0] > pair[1]:
		alice += 1
	elif pair[0] < pair[1]:
		bob += 1
print(alice, bob)


import sys
(a0, a1, a2) = [int(i) for i in input().strip().split(' ')]
(b0, b1, b2) = [int(i) for i in input().strip().split(' ')]
(a_score, b_score) = (0, 0)
for (a, b) in [(a0, b0), (a1, b1), (a2, b2)]:
	if a > b:
		a_score += 1
	elif b > a:
		b_score += 1
print('{} {}'.format(a_score, b_score))


import sys
a = [int(e) for e in input().strip().split()]
b = [int(e) for e in input().strip().split()]
alice = [True for i in range(3) if a[i] > b[i]]
bob = [True for i in range(3) if b[i] > a[i]]
print('{0} {1}'.format(str(len(alice)), str(len(bob))))


a = [int(_) for _ in input().split()]
b = [int(_) for _ in input().split()]
A = B = 0
for i in range(3):
	if a[i] > b[i]:
		A += 1
	elif b[i] > a[i]:
		B += 1
print(A, B)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a3 = b3 = 0
if a0 > b0:
	a3 = a3 + 1
elif a0 < b0:
	b3 = b3 + 1
if a1 > b1:
	a3 = a3 + 1
elif a1 < b1:
	b3 = b3 + 1
if a2 > b2:
	a3 = a3 + 1
elif a2 < b2:
	b3 = b3 + 1
print(str(a3) + ' ' + str(b3))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
(a, b) = (0, 0)
a += 1 if a0 > b0 else 0
a += 1 if a1 > b1 else 0
a += 1 if a2 > b2 else 0
b += 1 if b0 > a0 else 0
b += 1 if b1 > a1 else 0
b += 1 if b2 > a2 else 0
print(a, b)


A = [int(a) for a in input().strip().split()]
B = [int(b) for b in input().strip().split()]
score_a = 0
score_b = 0
for i in range(3):
	if A[i] > B[i]:
		score_a += 1
	elif B[i] > A[i]:
		score_b += 1
print(score_a, score_b)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
A = 0
B = 0
if a0 > b0:
	A += 1
elif a0 < b0:
	B += 1
if a1 > b1:
	A += 1
elif a1 < b1:
	B += 1
if a2 > b2:
	A += 1
elif a2 < b2:
	B += 1
print(A, B)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
alice_score = 0
bob_score = 0
if a0 > b0:
	alice_score += 1
if a1 > b1:
	alice_score += 1
if a2 > b2:
	alice_score += 1
if a0 < b0:
	bob_score += 1
if a1 < b1:
	bob_score += 1
if a2 < b2:
	bob_score += 1
print(str(alice_score) + ' ' + str(bob_score))


(a, b) = (list(map(int, input().split())), list(map(int, input().split())))
print((a[0] > b[0]) + (a[1] > b[1]) + (a[2] > b[2]), (a[0] < b[0]) + (a[1] < b[1]) + (a[2] < b[2]))


import sys
a = [int(x) for x in input().split()]
b = [int(x) for x in input().split()]
(ap, bp) = (0, 0)
for i in range(3):
	if a[i] > b[i]:
		ap += 1
	elif a[i] < b[i]:
		bp += 1
print(ap, bp)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = 0
b = 0
a += 1 if a0 > b0 else 0
b += 1 if a0 < b0 else 0
a += 1 if a1 > b1 else 0
b += 1 if a1 < b1 else 0
a += 1 if a2 > b2 else 0
b += 1 if a2 < b2 else 0
print(str(a) + ' ' + str(b))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
(n, A, B) = (0, 0, 0)
if a0 > b0:
	A = n + 1
elif a0 < b0:
	B = n + 1
if a1 > b1:
	A = A + 1
elif a1 < b1:
	B = B + 1
if a2 > b2:
	A = A + 1
elif a2 < b2:
	B = B + 1
print(A, B)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
scoreA = 0
scoreB = 0
if a1 > b1:
	scoreA += 1
elif a1 < b1:
	scoreB += 1
if a2 > b2:
	scoreA += 1
elif a2 < b2:
	scoreB += 1
if a0 > b0:
	scoreA += 1
elif a0 < b0:
	scoreB += 1
print(scoreA, scoreB)


(a0, a1, a2) = tuple(map(int, input().strip().split(' ')))
(b0, b1, b2) = tuple(map(int, input().strip().split(' ')))
(x, y) = (0, 0)
if a0 > b0:
	x += 1
elif a0 < b0:
	y += 1
if a1 > b1:
	x += 1
elif a1 < b1:
	y += 1
if a2 > b2:
	x += 1
elif a2 < b2:
	y += 1
print(x, y)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = [a0, a1, a2]
b = [b0, b1, b2]
alice_score = 0
bob_score = 0
for i in range(3):
	if a[i] > b[i]:
		alice_score += 1
	elif a[i] < b[i]:
		bob_score += 1
print(alice_score, bob_score)


import sys

def get_point(a_point, b_point, a_points, b_points):
	if a_point > b_point:
		a_points += 1
	elif b_point > a_point:
		b_points += 1
	return (a_points, b_points)
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a_points = b_points = 0
for (a_point, b_point) in [(a0, b0), (a1, b1), (a2, b2)]:
	(a_points, b_points) = get_point(a_point, b_point, a_points, b_points)
print(a_points, end=' ')
print(b_points)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
(A, B) = (0, 0)
if a0 > b0:
	A += 1
elif a0 < b0:
	B += 1
if a1 > b1:
	A += 1
elif a1 < b1:
	B += 1
if a2 > b2:
	A += 1
elif a2 < b2:
	B += 1
print(A, B)


import sys
(a0, a1, a2) = input().strip().split(' ')
ascores = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
bscores = [int(b0), int(b1), int(b2)]
alice = 0
bob = 0
for i in range(0, 3):
	a = ascores[i]
	b = bscores[i]
	if a > b:
		alice = alice + 1
	elif b > a:
		bob = bob + 1
print(str(alice) + ' ' + str(bob))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
aliceTotal = 0
bobTotal = 0
if a0 > b0:
	aliceTotal += 1
if a1 > b1:
	aliceTotal += 1
if a2 > b2:
	aliceTotal += 1
if a0 < b0:
	bobTotal += 1
if a1 < b1:
	bobTotal += 1
if a2 < b2:
	bobTotal += 1
result = str(aliceTotal) + ' ' + str(bobTotal)
print(result)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
aT = (a0 > b0) + (a1 > b1) + (a2 > b2)
bT = (a0 < b0) + (a1 < b1) + (a2 < b2)
print(aT, bT)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
(a, b) = (0, 0)
for _ in range(1):
	if a0 > b0:
		a += 1
	elif b0 > a0:
		b += 1
	if a1 > b1:
		a += 1
	elif b1 > a1:
		b += 1
	if a2 > b2:
		a += 1
	elif b2 > a2:
		b += 1
print(a, b)


alice = [int(i) for i in input().split()]
bob = [int(i) for i in input().split()]
(a_score, b_score) = (0, 0)
for i in range(len(alice)):
	if alice[i] < bob[i]:
		b_score += 1
	elif alice[i] > bob[i]:
		a_score += 1
print('%d %d' % (a_score, b_score))


import sys
a = list(map(int, input().strip().split(' ')))
b = list(map(int, input().strip().split(' ')))
alice = 0
bob = 0
for i in range(3):
	if a[i] > b[i]:
		alice += 1
	elif a[i] < b[i]:
		bob += 1
print(alice, bob)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
a = 0
b = 0
A = [a0, a1, a2]
B = [b0, b1, b2]
for i in range(3):
	if A[i] > B[i]:
		a += 1
	if A[i] < B[i]:
		b += 1
print(a, b)


a = map(int, input().strip().split(' '))
b = map(int, input().strip().split(' '))

def to_score(x, y):
	if x > y:
		return 1
	elif x < y:
		return -1
	return 0
scores = [to_score(x, y) for (x, y) in zip(a, b)]
alice = len(tuple(filter(lambda x: x > 0, scores)))
bob = len(tuple(filter(lambda x: x < 0, scores)))
print('%s %s' % (alice, bob))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
alice = 0
bob = 0
if a0 > b0:
	alice += 1
elif a0 < b0:
	bob += 1
if a1 > b1:
	alice += 1
elif a1 < b1:
	bob += 1
if a2 > b2:
	alice += 1
elif a2 < b2:
	bob += 1
print(alice, bob)


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
print('{} {}'.format((a0 > b0) + (a1 > b1) + (a2 > b2), (a0 < b0) + (a1 < b1) + (a2 < b2)))


import sys
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
l1 = 0
l2 = l3 = 0
if a0 > b0:
	l1 = l1 + 1
elif a0 == b0:
	l3 = l3 + 1
else:
	l2 = l2 + 1
if a1 > b1:
	l1 = l1 + 1
elif a1 == b1:
	l3 = l3 + 1
else:
	l2 = l2 + 1
if a2 > b2:
	l1 = l1 + 1
elif a2 == b2:
	l3 = l3 + 1
else:
	l2 = l2 + 1
print(l1, l2, sep=' ')


import sys

def get_score(t1, t2):
	return (sum([bool(t1[i] > t2[i]) for i in range(len(t1))]), sum([bool(t1[i] < t2[i]) for i in range(len(t1))]))
(a0, a1, a2) = input().strip().split(' ')
(a0, a1, a2) = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
(b0, b1, b2) = [int(b0), int(b1), int(b2)]
score = get_score((a0, a1, a2), (b0, b1, b2))
print(score[0], score[1], sep=' ')


import sys
(a0, a1, a2) = input().strip().split(' ')
a = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
b = [int(b0), int(b1), int(b2)]
alice = 0
bob = 0
for i in range(3):
	if a[i] > b[i]:
		alice += 1
	if a[i] < b[i]:
		bob += 1
print(alice, bob)


(a0, a1, a2) = input().strip().split(' ')
al = [int(a0), int(a1), int(a2)]
(b0, b1, b2) = input().strip().split(' ')
bl = [int(b0), int(b1), int(b2)]
a = 0
b = 0
for i in range(3):
	if al[i] > bl[i]:
		a += 1
	elif bl[i] > al[i]:
		b += 1
print(a, b)