[NH3:1].[C:2]1([C:8]2[C:9]3[S:32][CH:31]=[CH:30][C:10]=3[N:11]=[C:12](OP(N3CCOCC3)(N3CCOCC3)=O)[CH2:13][N:14]=2)[CH:7]=[CH:6][CH:5]=[CH:4][CH:3]=1>>[C:2]1([C:8]2[C:9]3[S:32][CH:31]=[CH:30][C:10]=3[N:11]=[C:12]([NH2:1])[CH2:13][N:14]=2)[CH:7]=[CH:6][CH:5]=[CH:4][CH:3]=1Gaseous ammonia was conducted into a solution of 14.4 g of dimorpholin-4-yl-phosphinic acid (5-phenyl-3H-thieno[3,2-e][1,4]-diazepin-2-yl) ester at room temperature while stirring until the starting product had reacted completely. After removal of the solvent in a vacuum the residue was extracted with dichloromethane/water in the presence of a small amount of methanol. The aqueous phase was washed several times with dichloromethane, the dichloromethane extracts were dried with sodium sulphate, filtered and evaporated in a vacuum. The residue was suspended in dichloromethane and stirred for 0.5 h. There were obtained 2.9 g of crude 5-phenyl-3H-thieno[3,2-e][1,4]diazepin-2-ylamine which was used without further purification as the starting product for the step described below.