Reaction of a-halohydrazones with primary thioamides