The invention provides compounds of the formula (0) or salts or tautomers or N-oxides or solvates thereof for use in the prophylaxis or treatment of disease states and conditions such as cancers mediated by cyclin-dependent kinase and glycogen synthase kinase-3.