output_description: For each dataset, print the number of Hit and Blow in a line. These two
  numbers should be separated by a space.
input_description: The input consists of multiple datasets. Each dataset set consists of:
  
      
      
      a1 a2 a3 a4
      b1 b2 b3 b4
      
  
  , where ai (0 ≤ ai ≤ 9) is i-th number _A_ imagined and bi (0 ≤ bi ≤ 9) is
  i-th number _B_ chose.
  
  The input ends with EOF. The number of datasets is less than or equal to 50.
attempt: a = input().split()
  b = input().split()
  s = 0
  v = 0
  for i in range(len(a)):
      if a[i] == b[i]:
          s += 1
      elif a[i] in b:
          v += 1
  
  print(*(s, v))
  
problem_description: Hit and Blow
  
  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.
samples: [{"input": "1 8 2\n    4 1 5 9\n    4 6 8 2\n    4 6 3 2", "output": "1\n    3 0"}]