def heap_replace(heap,a):
  import heapq as hq
  
  hq.heapify(heap)
  hq.heapreplace(heap, a)
  return heap
def similar_elements(test_tup1, test_tup2):
  
  res = tuple(set(test_tup1) & set(test_tup2))
  return (res) 