def extract_rear(test_tuple):
  
  res = list(sub[len(sub) - 1] for sub in test_tuple)
  return (res) 
def heap_queue_largest(nums,n):
  import heapq as hq
  
  largest_nums = hq.nlargest(n, nums)
  return largest_nums