def test_three_equal(x,y,z):
  
  result= set([x,y,z])
  if len(result)==3:
    return 0
  else:
    return (4-len(result))
def similar_elements(test_tup1, test_tup2):
  
  res = tuple(set(test_tup1) & set(test_tup2))
  return (res) 