[CH2:1]([NH:4][C:5]1[C:6]2[S:14][CH:13]=[C:12]([Br:15])[C:7]=2[N:8]=[C:9](Cl)[N:10]=1)[CH:2]=[CH2:3].[CH2:16]([NH2:19])[CH:17]=[CH2:18].C(=O)([O-])O.[Na+]>>[CH2:16]([NH:19][C:9]1[N:10]=[C:5]([NH:4][CH2:1][CH:2]=[CH2:3])[C:6]2[S:14][CH:13]=[C:12]([Br:15])[C:7]=2[N:8]=1)[CH:17]=[CH2:18]305 mg (1.0 mmol) of 4-allylamino-7-bromo-2-chlorothieno[3,2-d]pyrimidine and 914 mg (16.0 mmol) of allylamine were heated in a sealed tube at 160° C. for 16 hours. After completion of the reaction, the reaction mixture was allowed to resume room temperature, followed by adding a saturated aqueous sodium hydrogen carbonate solution thereto and extraction with ethyl acetate (50 ml×2). After the organic layer was washed with brine and dried over anhydrous sodium sulfate, the solvent was distilled off. The residue was purified by silica gel chromatography (eluent: ethyl acetate-hexane=1/4) to give 304 mg (yield: 93.3%) of the title compound.