#!/bin/python3

import math
import os
import random
import re
import sys

a = list(map(int, input().split()))

b = list(map(int, input().split()))



a_score = b_score = 0



for i in range(len(a)):

    if a[i] > b[i]:

        a_score += 1

    elif a[i] < b[i]:

        b_score +=1

    else:

        pass



print(a_score, b_score)
