C([C:3]1[C:4](=[O:17])[N:5]([CH3:16])[C:6](=[O:15])[N:7]([CH3:14])[C:8]=1[CH:9]=[CH:10][N:11](C)[CH3:12])=O.N>C(O)C>[CH3:14][N:7]1[C:8]2[CH:9]=[CH:10][N:11]=[CH:12][C:3]=2[C:4](=[O:17])[N:5]([CH3:16])[C:6]1=[O:15]0.47 g of 5-formyl-1,3-dimethyl-6-(2-dimethylaminovinyl)uracil was dissolved in ethanol, and ammonia was added thereto. The solution was stirred for 30 min at room temperature. The precipitated crystals were separated from the solution by filtration and recrystallized from ethanol to give 0.32 g of 1,3-dimethylpyrido[4,3-d]pyrimidine-2,4-dione (Compound 1).