def rear_extract(test_list):
  
  res = [lis[-1] for lis in test_list]
  return (res) 
def heap_queue_largest(nums,n):
  import heapq as hq
  
  largest_nums = hq.nlargest(n, nums)
  return largest_nums