Output for query 2 when there doesn't exists a kth smallest distance

What should the code produce as output if we pass a query of the 2nd type when we have less than k distances available?

@officialsoumalya
This statement is mentioned in the problem description- β€œIt is gauranted that there will be atleast k queries of type 1 before first query of type 2.”