Mode of issuing the identity documents and residence permits