Let's play Hit and Blow game. *A* imagines four numbers and *B* guesses the numbers. After *B* picks out four numbers, *A* answers:

- The number of numbers which have the same place with numbers
*A*imagined (Hit) - The number of numbers included (but different place) in the numbers
*A*imagined (Blow)

For example, if *A* imagined numbers:

9 1 8 2

and *B* chose:

4 1 5 9

*A* should say 1 Hit and 1 Blow.

Write a program which reads four numbers *A* imagined and four numbers *B* chose and prints the number of Hit and Blow respectively. You may assume that the four numbers are all different and within from 0 to 9.

The input consists of multiple datasets. Each dataset set consists of:

a_{1}a_{2}a_{3}a_{4}b_{1}b_{2}b_{3}b_{4}

, where `a _{i}` (0 ≤

The input ends with EOF. The number of datasets is less than or equal to 50.

For each dataset, print the number of Hit and Blow in a line. These two numbers should be separated by a space.

9 1 8 2 4 1 5 9 4 6 8 2 4 6 3 2

1 1 3 0

Source: PC Koshien 2003
, All-Japan High School Programming Contest, Aizu-Wakamatsu, Japan, 2003

http://www.pref.fukushima.jp/pc-concours/

http://www.pref.fukushima.jp/pc-concours/