finding smallest element from it is --
we have to apply extract minheap() whose time complexity is O(log n) 50 times i.e 50 log(n) and then O(1) for the 50th smallest number and then inserting the rest 49 element O(log n)*49.
total time complexity=50 log(n)+O(1)+49O(log n)=O(logn)