Synthesis of five-membered N-heterocycles using silver metal