complete inputBingQu func