The present invention relates to compounds of the formula I, the N-oxides, tautomers, the prodrugs and the pharmaceutically acceptable salts thereof, where in formula I the variables R1, R2, R3, R4 and R5 are as defined in the claims and where X is C-R6 or N,Y is C-R7 or N, where R6 and R7 are, inter alia, hydrogen, halogen, alkoxy, haloalkoxy and the like. The compounds of the formula I, the N-oxides, tautomers,the prodrugs and the pharmaceutically acceptable salts thereof are inhibitors of phosphodiesterase type 10A and to their use for the manufacture of a medicament and which thus are suitable for treating or controlling of medical disorders selected from neurological disorders and psychiatric disorders, for ameliorating the symptoms associated with such disorders and for reducing the risk of such disorders.La présente invention concerne des composés de la formule I, leurs N-oxydes, leurs tautomères, leurs prémédicaments et leurs sels pharmaceutiquement acceptables. Dans la formule I, les variables R1, R2, R3, R4 et R5 sont telles que définies dans les revendications, X est C-R6 ou N, Y est C-R7 ou N, R6 et R7 sont entre autres hydrogène, halogène, alcoxy, halogénoalcoxy et similaire. Les composés de la formule I, leurs N-oxydes, leurs tautomères, leurs prémédicaments et leurs sels pharmaceutiquement acceptables sont des inhibiteurs de la phosphodiestérase de type 10A. L'invention concerne également leur utilisation pour la production d'un médicament dans lequel ils sont appropriés pour agir sur ou traiter des troubles médicaux faisant partie des troubles neurologiques et psychiatriques, pour améliorer les symptômes liés à ces troubles, et pour réduire le risque d'apparition de ces troubles.