def replace(string, char):
    import re 
     
    pattern = char + '{2,}'
    string = re.sub(pattern, char, string) 
    return string 
def heap_queue_largest(nums,n):
  import heapq as hq
  
  largest_nums = hq.nlargest(n, nums)
  return largest_nums