import heapq\r\n\r\nH = [21,1,45,78,3,5]\r\n# Use heapify to rearrange the elements\r\nheapq.heapify(H)\r\nprint(H)