#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the compareTriplets function below.
def compareTriplets(a, b):
alice = 0
bob = 0
for i in range(3):
if a[i] > b[i]:
alice += 1
elif b[i] > a[i]:
bob += 1
li =[alice,bob]
return li
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
a = list(map(int, input().rstrip().split()))
b = list(map(int, input().rstrip().split()))
result = compareTriplets(a, b)
fptr.write(' '.join(map(str, result)))
fptr.write('
')
fptr.close()